diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-10-09 21:38:21 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-10-09 22:03:58 +0300 |
commit | a43d8894bc5bed439265dd3984898c22c8df857b (patch) | |
tree | 39256849547ae47a95107c8e9aa5856ec9578c07 /src/main.c | |
parent | 1fdfe0ec055c5e8c080dd1427d98730885ac8bd4 (diff) | |
download | cflow-a43d8894bc5bed439265dd3984898c22c8df857b.tar.gz cflow-a43d8894bc5bed439265dd3984898c22c8df857b.tar.bz2 |
Accept qualifiers before declarations.
* src/c.l: Handle "inline" keyword.
* src/main.c (symbol_optype): Add "qualifier".
* src/parser.c (print_token): Correctly handle
PARM_WRAPPER and STRING.
(save_token): Handle QUALIFIER.
In verbose mode, warn about unexpected symbols.
(yyparse): Handle QUALIFIER and PARM_WRAPPER.
* src/parser.h (QUALIFIER): New define.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -246,6 +246,7 @@ static struct option_type symbol_optype[] = { { "identifier", 1, IDENTIFIER }, { "type", 1, TYPE }, { "wrapper", 1, PARM_WRAPPER }, + { "qualifier", 1, QUALIFIER }, { 0 }, }; |