diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 962062aa..ebb21b55 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 => 715, + BUILD_REVISION => 717, BUILD_DATE => "2014-07-07", }; diff --git a/modules/c2english/CGrammar.pm b/modules/c2english/CGrammar.pm index de5ac85e..9ce7513a 100644 --- a/modules/c2english/CGrammar.pm +++ b/modules/c2english/CGrammar.pm @@ -978,12 +978,12 @@ unary_expression: $return = $item{unary_operator} . $item{cast_expression}; } } + | 'sizeof' unary_expression[context => 'sizeof'] + { $return = "the size of $item{unary_expression}"; } | 'sizeof' '(' type_name[context => 'sizeof'] ')' { $return = "the size of the type $item{type_name}"; } | 'sizeof' '(' assignment_expression[context => 'sizeof'] ')' { $return = "the size of the type of the expression ($item{assignment_expression})"; } - | 'sizeof' unary_expression[context => 'sizeof'] - { $return = "the size of $item{unary_expression}"; } | Alignof '(' type_name ')' { $return = "the alignment of the type $item{type_name}"; }