summaryrefslogtreecommitdiff
path: root/source3/aparser/token.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/token.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/token.awk')
-rw-r--r--source3/aparser/token.awk12
1 files changed, 11 insertions, 1 deletions
diff --git a/source3/aparser/token.awk b/source3/aparser/token.awk
index 0c4c7f65b1..9920de562b 100644
--- a/source3/aparser/token.awk
+++ b/source3/aparser/token.awk
@@ -53,10 +53,19 @@ function parse_error(msg) {
next;
}
-/^[ \t]*STATUS.*\(/ {
+/^[ \t]*void.*\(/ {
{if (current_struct!="") parse_error("you cannot have nested structures");}
split($0,a,"[ \t;()]*");
start_function(a[2], a[3]);
+ return_result="void";
+ next;
+}
+
+/^[ \t]*STATUS.*\(|^[ \t]*void.*\(/ {
+ {if (current_struct!="") parse_error("you cannot have nested structures");}
+ split($0,a,"[ \t;()]*");
+ start_function(a[2], a[3]);
+ return_result="STATUS";
next;
}
@@ -118,6 +127,7 @@ function parse_error(msg) {
/^[ \t]*\);/ {
end_function();
+ return_result="";
next;
}