mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
compiler_vm: improved function extraction (missed a spot)
This commit is contained in:
parent
0e957ba414
commit
dad1bf978e
@ -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",
|
||||
};
|
||||
|
||||
|
@ -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, '{}');
|
||||
|
Loading…
Reference in New Issue
Block a user