mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Reposition *
character in function regex to be consistent
This commit is contained in:
parent
c8d77ed230
commit
d5e5f2c728
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 396,
|
||||
BUILD_REVISION => 397,
|
||||
BUILD_DATE => "2012-11-19",
|
||||
};
|
||||
|
||||
|
@ -751,7 +751,7 @@ if($lang eq 'C' or $lang eq 'C99' or $lang eq 'C11' or $lang eq 'C++') {
|
||||
|
||||
print "looking for functions, has main: $has_main\n" if $debug >= 2;
|
||||
|
||||
my $func_regex = qr/^([ *\w]+)\s+([\w*]+)\s*\((.*?)\s*\)\s*({.*)/ims;
|
||||
my $func_regex = qr/^([ *\w]+)\s+([*\w]+)\s*\((.*?)\s*\)\s*({.*)/ims;
|
||||
|
||||
# look for potential functions to extract
|
||||
while($preprecode =~ /$func_regex/ms) {
|
||||
|
Loading…
Reference in New Issue
Block a user