From 1e2caf2bea723bf084dccbacb7e214bf25aa168e Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 21 Jun 2014 01:40:55 +0000 Subject: [PATCH] CGrammar: Er, *correctly* change parameter declarations from "int `i`" to "`i` as int" --- PBot/VERSION.pm | 2 +- modules/c2english/CGrammar.pm | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index c92d1fdc..83a239ec 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -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", }; diff --git a/modules/c2english/CGrammar.pm b/modules/c2english/CGrammar.pm index a9b171dc..48b20894 100644 --- a/modules/c2english/CGrammar.pm +++ b/modules/c2english/CGrammar.pm @@ -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); }