3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

compiler_vm: improved function extraction (missed a spot)

This commit is contained in:
Pragmatic Software 2012-03-21 16:02:02 +00:00
parent 0e957ba414
commit dad1bf978e
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 367,
BUILD_REVISION => 368,
BUILD_DATE => "2012-03-21",
};

View File

@ -661,7 +661,7 @@ if($lang eq 'C' or $lang eq 'C99' or $lang eq 'C11' or $lang eq 'C++') {
$precode .= "$ret $ident ($params) $potential_body";
next;
} else {
$tmpcode =~ s/([ a-zA-Z0-9_*\[\]]+)\s+([a-zA-Z0-9_*]+)\s*\((.*?)\)\s*(\{.*)//;
$tmpcode =~ s/$func_regex//;
}
my @extract = extract_bracketed($potential_body, '{}');