summaryrefslogtreecommitdiff
path: root/source3/aparser/main.awk
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-15 13:41:05 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-15 13:41:05 +0000
commit32a7cf9188672b0c4766056eb762972f8488aa8e (patch)
tree04d27186b802525e7449c03a908827a67f67200a /source3/aparser/main.awk
parente2e33eb3207e1a6f85ca36cafc564aa9427fd7af (diff)
downloadsamba-32a7cf9188672b0c4766056eb762972f8488aa8e.tar.gz
samba-32a7cf9188672b0c4766056eb762972f8488aa8e.tar.bz2
samba-32a7cf9188672b0c4766056eb762972f8488aa8e.zip
started update to handle arbitrary arrays
note: this code is currently broken. (This used to be commit 15646ebd84ee4e63a251c87800677f3dd2ae6971)
Diffstat (limited to 'source3/aparser/main.awk')
-rw-r--r--source3/aparser/main.awk10
1 files changed, 2 insertions, 8 deletions
diff --git a/source3/aparser/main.awk b/source3/aparser/main.awk
index c3e8c2539c..d891970c68 100644
--- a/source3/aparser/main.awk
+++ b/source3/aparser/main.awk
@@ -24,7 +24,7 @@
}
/^[ \t]*union.*\{/ {
- start_union($2, $3);
+ start_union($2);
next;
}
@@ -44,15 +44,9 @@
next;
}
-/^[ \t]*\{.*\}.*;/ {
- split($0,a,"[ \t;{}]*");
- add_array(a[2], a[3], a[4]);
- next;
-}
-
/.*;/ {
split($0,a,"[ \t;]*");
- add_elem(a[2], a[3]);
+ add_struct_elem(a[2], a[3]);
}
END {