summaryrefslogtreecommitdiff
path: root/source3/aparser/token.awk
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-09 02:59:50 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-09 02:59:50 +0000
commiteee003da6aee5ffc00e318fc0390e6b19151a675 (patch)
tree3cdb43304603d5bc38c2b2609fa8696731c898d5 /source3/aparser/token.awk
parentc3487b00dd1dde7fa0511211f466acc1c05d8f3d (diff)
downloadsamba-eee003da6aee5ffc00e318fc0390e6b19151a675.tar.gz
samba-eee003da6aee5ffc00e318fc0390e6b19151a675.tar.bz2
samba-eee003da6aee5ffc00e318fc0390e6b19151a675.zip
started adding support for relative, plus options for autoalignment
so the same parser generator can be uses for cifs and rpc (This used to be commit c7829fa0d87081d9b3f33468527583e3b763916b)
Diffstat (limited to 'source3/aparser/token.awk')
-rw-r--r--source3/aparser/token.awk5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/aparser/token.awk b/source3/aparser/token.awk
index 9920de562b..25ac06f6e3 100644
--- a/source3/aparser/token.awk
+++ b/source3/aparser/token.awk
@@ -34,6 +34,11 @@ function parse_error(msg) {
{if (module=="") parse_error("you must specify the module name first");}
+/^[ \t]*option/ {
+ set_option($2, $3);
+ next;
+}
+
/^[ \t]*typedef struct.*\{/ {
{if (current_struct!="") parse_error("you cannot have nested structures");}
start_struct($3);