diff options
Diffstat (limited to 'source3/aparser/token.awk')
-rw-r--r-- | source3/aparser/token.awk | 12 |
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; } |