3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01:00

Fix "const const" and reorder types

This commit is contained in:
Pragmatic Software 2015-05-25 17:25:00 -07:00
parent 7607de79a0
commit c0cb6331a9
2 changed files with 4 additions and 2 deletions

View File

@ -1680,7 +1680,7 @@ atomic_type_specifier:
type_specifier:
<skip:''> /\s*/
(typedef_name | 'void' | 'double' | 'float' | 'char' | 'short' | 'int' | 'long'
('void'
| 'signed' | 'unsigned'
| 'FILE' | 'fpos_t'
| 'bool' | '_Bool'
@ -1703,7 +1703,8 @@ type_specifier:
| 'clock_t' | 'time_t'
| <skip:'[\s]*'> struct_or_union_specifier
| <skip:'[\s]*'> enum_specifier
| <skip:'[\s]*'> atomic_type_specifier
| <skip:'[\s]*'> atomic_type_specifier | typedef_name
| 'double' | 'float' | 'char' | 'short' | 'int' | 'long'
) .../\W/
{ $return = $item[3]; }

View File

@ -78,6 +78,7 @@ foreach my $arg (@ARGV) {
$output =~ s/the function a generic-selection/the function resulting from a generic-selection/g;
$output =~ s/\.\s+Then exit switch block/ and then exit switch block/g;
$output =~ s/,\././g;
$output =~ s/const const/const/g;
foreach my $quote (@quotes) {
next unless $quote;