summaryrefslogtreecommitdiff
path: root/source3/aparser/parsetree.awk
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-05-31 05:39:54 +0000
committerLuke Leighton <lkcl@samba.org>2000-05-31 05:39:54 +0000
commitd500cbb2064e4beb40a760f62b53a3f75f2a87fb (patch)
tree2cf28401f2e473d02a8d5555a4007c65f511051b /source3/aparser/parsetree.awk
parent23d705672eea5562c585421c2d4c0be694a7f354 (diff)
downloadsamba-d500cbb2064e4beb40a760f62b53a3f75f2a87fb.tar.gz
samba-d500cbb2064e4beb40a760f62b53a3f75f2a87fb.tar.bz2
samba-d500cbb2064e4beb40a760f62b53a3f75f2a87fb.zip
messing about.
(This used to be commit 9c6f2d75d848a280f25f2377130953ecd824b7b1)
Diffstat (limited to 'source3/aparser/parsetree.awk')
-rw-r--r--source3/aparser/parsetree.awk8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/aparser/parsetree.awk b/source3/aparser/parsetree.awk
index 832cd5f2e8..bb1160b954 100644
--- a/source3/aparser/parsetree.awk
+++ b/source3/aparser/parsetree.awk
@@ -51,6 +51,11 @@ function add_element(type, elem, case,
}
elem_num=num_elements;
+ if (substr(elem, 1, 1) == ".") {
+ elem=substr(elem, 2);
+ elements[elem_num, "nowire"]=1;
+ }
+
if (substr(elem, 1, 1) == "*") {
elem=substr(elem, 2);
elements[elem_num, "ptr"]=1;
@@ -185,7 +190,8 @@ function end_function(LOCAL, i)
i--;
}
}
- add_function_param("[out]", "STATUS", "status");
+ if (return_result!="void")
+ add_function_param("[out]", return_result, "status");
end_struct();
}