aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-10-09 21:38:21 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-10-09 22:03:58 +0300
commita43d8894bc5bed439265dd3984898c22c8df857b (patch)
tree39256849547ae47a95107c8e9aa5856ec9578c07 /src/main.c
parent1fdfe0ec055c5e8c080dd1427d98730885ac8bd4 (diff)
downloadcflow-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 12ef6b7..dff6788 100644
--- a/src/main.c
+++ b/src/main.c
@@ -246,6 +246,7 @@ static struct option_type symbol_optype[] = {
{ "identifier", 1, IDENTIFIER },
{ "type", 1, TYPE },
{ "wrapper", 1, PARM_WRAPPER },
+ { "qualifier", 1, QUALIFIER },
{ 0 },
};

Return to:

Send suggestions and report system problems to the System administrator.