mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
Fix "const const" and reorder types
This commit is contained in:
parent
7607de79a0
commit
c0cb6331a9
@ -1680,7 +1680,7 @@ atomic_type_specifier:
|
|||||||
|
|
||||||
type_specifier:
|
type_specifier:
|
||||||
<skip:''> /\s*/
|
<skip:''> /\s*/
|
||||||
(typedef_name | 'void' | 'double' | 'float' | 'char' | 'short' | 'int' | 'long'
|
('void'
|
||||||
| 'signed' | 'unsigned'
|
| 'signed' | 'unsigned'
|
||||||
| 'FILE' | 'fpos_t'
|
| 'FILE' | 'fpos_t'
|
||||||
| 'bool' | '_Bool'
|
| 'bool' | '_Bool'
|
||||||
@ -1703,7 +1703,8 @@ type_specifier:
|
|||||||
| 'clock_t' | 'time_t'
|
| 'clock_t' | 'time_t'
|
||||||
| <skip:'[\s]*'> struct_or_union_specifier
|
| <skip:'[\s]*'> struct_or_union_specifier
|
||||||
| <skip:'[\s]*'> enum_specifier
|
| <skip:'[\s]*'> enum_specifier
|
||||||
| <skip:'[\s]*'> atomic_type_specifier
|
| <skip:'[\s]*'> atomic_type_specifier | typedef_name
|
||||||
|
| 'double' | 'float' | 'char' | 'short' | 'int' | 'long'
|
||||||
) .../\W/
|
) .../\W/
|
||||||
{ $return = $item[3]; }
|
{ $return = $item[3]; }
|
||||||
|
|
||||||
|
@ -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/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/\.\s+Then exit switch block/ and then exit switch block/g;
|
||||||
$output =~ s/,\././g;
|
$output =~ s/,\././g;
|
||||||
|
$output =~ s/const const/const/g;
|
||||||
|
|
||||||
foreach my $quote (@quotes) {
|
foreach my $quote (@quotes) {
|
||||||
next unless $quote;
|
next unless $quote;
|
||||||
|
Loading…
Reference in New Issue
Block a user