mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-17 05:50:56 +01:00
CGrammar: Don't pluralize "member" for structs with a single function pointer
This commit is contained in:
parent
cc0957b060
commit
0c8078c6db
@ -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 => 718,
|
BUILD_REVISION => 719,
|
||||||
BUILD_DATE => "2014-07-07",
|
BUILD_DATE => "2014-07-07",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1658,7 +1658,7 @@ struct_or_union_specifier:
|
|||||||
my $identifier = join('',@{$item{'identifier(?)'}});
|
my $identifier = join('',@{$item{'identifier(?)'}});
|
||||||
$return = join('',@{$item{'comment(?)'}}) . $item{struct_or_union};
|
$return = join('',@{$item{'comment(?)'}}) . $item{struct_or_union};
|
||||||
if ($identifier) { $return .= " tagged $identifier"; }
|
if ($identifier) { $return .= " tagged $identifier"; }
|
||||||
my $plural = $item{struct_declaration_list} =~ / and / ? 's' : '';
|
my $plural = $item{struct_declaration_list} =~ / and (?!returning)/ ? 's' : '';
|
||||||
$return .= ", with member$plural $item{struct_declaration_list},";
|
$return .= ", with member$plural $item{struct_declaration_list},";
|
||||||
}
|
}
|
||||||
| struct_or_union identifier
|
| struct_or_union identifier
|
||||||
|
Loading…
x
Reference in New Issue
Block a user