aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/pre_parser.mly
diff options
context:
space:
mode:
Diffstat (limited to 'cparser/pre_parser.mly')
-rw-r--r--cparser/pre_parser.mly9
1 files changed, 3 insertions, 6 deletions
diff --git a/cparser/pre_parser.mly b/cparser/pre_parser.mly
index d217a7a4..d6a4a21c 100644
--- a/cparser/pre_parser.mly
+++ b/cparser/pre_parser.mly
@@ -873,18 +873,15 @@ asm_flags:
{}
translation_unit_file:
-| translation_unit EOF
-| EOF
+| translation_item* EOF
{}
-translation_unit:
+translation_item:
| external_declaration
-| translation_unit external_declaration
-| translation_unit SEMICOLON
| SEMICOLON
{}
-external_declaration:
+%inline external_declaration:
| function_definition
| declaration(external_declaration)
| PRAGMA