diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2024-03-08 16:59:56 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2024-03-08 16:59:56 +0200 |
commit | d0f512477d0ce9d97c2caeaa2e0737d375a5624e (patch) | |
tree | 488605295ad82c6521165be20ab74706b5183871 | |
parent | 56732e03c63afd7b8ca3bdd1a9af2bcda6480f8a (diff) | |
download | cflow-master.tar.gz cflow-master.tar.bz2 |
-rw-r--r-- | src/parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.c b/src/parser.c index d477f16..8c53942 100644 --- a/src/parser.c +++ b/src/parser.c @@ -719,6 +719,10 @@ parse_function_declaration(Ident *ident, int parm) int fake_struct(Ident *ident) { + while (tok.type == QUALIFIER && + (strcmp(tok.token, "const") == 0 || + strcmp(tok.token, "volatile") == 0)) + nexttoken(); ident->type_end = -1; if (tok.type == STRUCT) { if (nexttoken() == IDENTIFIER) { |