mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
CGrammar: Fix int const i
to translate to constant int i
instead of int constant i
This commit is contained in:
parent
7590644422
commit
f898580d33
@ -13,8 +13,8 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 654,
|
||||
BUILD_DATE => "2014-06-17",
|
||||
BUILD_REVISION => 655,
|
||||
BUILD_DATE => "2014-06-18",
|
||||
};
|
||||
|
||||
1;
|
||||
|
@ -1238,12 +1238,15 @@ declaration_specifiers:
|
||||
| comment(?) type_specifier declaration_specifiers(?)
|
||||
{
|
||||
my $decl_spec = join(' ', @{$item{'declaration_specifiers(?)'}});
|
||||
$return = join('',@{$item{'comment(?)'}}) . $item{type_specifier};
|
||||
if ($decl_spec) { $return .= ' ' . $decl_spec; }
|
||||
$return = join('',@{$item{'comment(?)'}});
|
||||
$return .= "$decl_spec " if $decl_spec;
|
||||
$return .= $item{type_specifier};
|
||||
}
|
||||
| comment(?) type_qualifier declaration_specifiers(?)
|
||||
{
|
||||
my $decl_spec = $return = join('',@{$item{'comment(?)'}}) . $item{type_qualifier} . ' ' . join(' ',@{$item{'declaration_specifiers(?)'}});
|
||||
my $decl_spec = join(' ',@{$item{'declaration_specifiers(?)'}});
|
||||
$return = join('',@{$item{'comment(?)'}}) . $item{type_qualifier};
|
||||
$return .= " $decl_spec" if $decl_spec;
|
||||
}
|
||||
|
||||
storage_class_specifier:
|
||||
|
Loading…
Reference in New Issue
Block a user