mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
CGrammar: Er, *correctly* change parameter declarations from "int i
" to "i
as int"
This commit is contained in:
parent
f137294429
commit
1e2caf2bea
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 662,
|
||||
BUILD_REVISION => 663,
|
||||
BUILD_DATE => "2014-06-20",
|
||||
};
|
||||
|
||||
|
@ -1118,13 +1118,8 @@ parameter_list:
|
||||
} elsif (@list == 1) {
|
||||
$return .= $list[0];
|
||||
} else {
|
||||
my $identifier;
|
||||
if(grep { /function.*returning/ } @list) {
|
||||
push @list, shift @list;
|
||||
$identifier = shift @list;
|
||||
} else {
|
||||
$identifier = pop @list;
|
||||
}
|
||||
push @list, shift @list;
|
||||
my $identifier = shift @list;
|
||||
$return .= "$identifier as ";
|
||||
$return .= join(' ', @list);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user