summaryrefslogtreecommitdiff
path: root/source3/aparser/union.awk
diff options
context:
space:
mode:
Diffstat (limited to 'source3/aparser/union.awk')
-rw-r--r--source3/aparser/union.awk16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/aparser/union.awk b/source3/aparser/union.awk
new file mode 100644
index 0000000000..4a26bd9c20
--- /dev/null
+++ b/source3/aparser/union.awk
@@ -0,0 +1,16 @@
+function start_union(elem, name) {
+ switch=elem;
+ union=name;
+}
+
+function parse_case(value,type,elem) {
+ case=value;
+ add_elem(type, elem, 0);
+}
+
+function end_union() {
+ union="";
+ case="";
+ switch="";
+}
+