diff options
author | rideout <rideout@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-05-14 12:58:22 +0000 |
---|---|---|
committer | rideout <rideout@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-05-14 12:58:22 +0000 |
commit | 29963a62a970bfdd613c42b2addfb881a4094fe3 (patch) | |
tree | 7354c26feb7b7a66d916816a9bfd985f655ebc4a /lib/sbin/CreateFunctionBindings.pl | |
parent | a168c401bce0bc6db1bd88dd7ab2251a5b5fcd37 (diff) |
Fix return for void functions in C. Patch by Ian Hawke.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3217 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/CreateFunctionBindings.pl')
-rw-r--r-- | lib/sbin/CreateFunctionBindings.pl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/sbin/CreateFunctionBindings.pl b/lib/sbin/CreateFunctionBindings.pl index 09e1056b..6d7bd18d 100644 --- a/lib/sbin/CreateFunctionBindings.pl +++ b/lib/sbin/CreateFunctionBindings.pl @@ -1929,7 +1929,14 @@ sub ProvidedFunctions push(@data,@FnPtrSets); push(@data,""); } - push(@data," return (${provider})(@{cseq});"); + if ($rettype ne 'void') + { + push(@data," return (${provider})(@{cseq});"); + } + else + { + push(@data," ${provider}(@{cseq});"); + } push(@data,"}"); } # print $WrapperFunctionList{$nameF}{"Provider"}; |