3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

CGrammar: Fix translation of multiple type specifiers, e.g. long double no longer becomes double long

This commit is contained in:
Pragmatic Software 2014-06-27 11:38:54 +00:00
parent 3a3827fe40
commit 99aea7fe63
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 681, BUILD_REVISION => 682,
BUILD_DATE => "2014-06-27", BUILD_DATE => "2014-06-27",
}; };

View File

@ -1270,12 +1270,12 @@ declaration_specifiers:
if ($decl_spec) { $return .= " $decl_spec"; } if ($decl_spec) { $return .= " $decl_spec"; }
} }
} }
| comment(?) type_specifier declaration_specifiers(?) | comment(?) type_specifier(s) declaration_specifiers(?)
{ {
my $decl_spec = join(' ', @{$item{'declaration_specifiers(?)'}}); my $decl_spec = join(' ', @{$item{'declaration_specifiers(?)'}});
$return = join('',@{$item{'comment(?)'}}); $return = join('',@{$item{'comment(?)'}});
$return .= "$decl_spec " if $decl_spec; $return .= "$decl_spec " if $decl_spec;
$return .= $item{type_specifier}; $return .= join(' ', @{$item{'type_specifier(s)'}});
} }
| comment(?) type_qualifier declaration_specifiers(?) | comment(?) type_qualifier declaration_specifiers(?)
{ {