mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 04:22:35 +01:00
CGrammar: Fix translation of multiple type specifiers, e.g. long double
no longer becomes double long
This commit is contained in:
parent
3a3827fe40
commit
99aea7fe63
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 681,
|
||||
BUILD_REVISION => 682,
|
||||
BUILD_DATE => "2014-06-27",
|
||||
};
|
||||
|
||||
|
@ -1270,12 +1270,12 @@ declaration_specifiers:
|
||||
if ($decl_spec) { $return .= " $decl_spec"; }
|
||||
}
|
||||
}
|
||||
| comment(?) type_specifier declaration_specifiers(?)
|
||||
| comment(?) type_specifier(s) declaration_specifiers(?)
|
||||
{
|
||||
my $decl_spec = join(' ', @{$item{'declaration_specifiers(?)'}});
|
||||
$return = join('',@{$item{'comment(?)'}});
|
||||
$return .= "$decl_spec " if $decl_spec;
|
||||
$return .= $item{type_specifier};
|
||||
$return .= join(' ', @{$item{'type_specifier(s)'}});
|
||||
}
|
||||
| comment(?) type_qualifier declaration_specifiers(?)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user