summaryrefslogtreecommitdiff
path: root/lib/sbin/CreateFunctionBindings.pl
diff options
context:
space:
mode:
authorrideout <rideout@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-12-06 00:32:41 +0000
committerrideout <rideout@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-12-06 00:32:41 +0000
commit6aeeaf35863218e6781144024b4b4e302c78b44f (patch)
tree902ae7b390736a1d85795d64c88f2bfe0a11e28e /lib/sbin/CreateFunctionBindings.pl
parent43b92378e04fef6f337a1e141eb408f69631d5dd (diff)
Strip off FPTRARGS from the error message if a function pointer
argument is missing an intent statement. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3472 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/CreateFunctionBindings.pl')
-rw-r--r--lib/sbin/CreateFunctionBindings.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sbin/CreateFunctionBindings.pl b/lib/sbin/CreateFunctionBindings.pl
index d4f65594..97e08b4b 100644
--- a/lib/sbin/CreateFunctionBindings.pl
+++ b/lib/sbin/CreateFunctionBindings.pl
@@ -615,6 +615,7 @@ sub ParseArgument
}
else # (usually meaning intent is missing, so $intent holds the name and $name is empty)
{
+ $intent =~ s/FPTRARGS//; #strip off the FPTARGS if this happens for a function pointer
my $message = "Thorn $Thorn, Function $Function:\nEvery argument must contain an intent statement of type IN, OUT or INOUT.\n The argument \"$intent\" does not.";
&CST_error(0,$message,'',__LINE__,__FILE__);
}