aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2024-03-08 16:59:56 +0200
committerSergey Poznyakoff <gray@gnu.org>2024-03-08 16:59:56 +0200
commitd0f512477d0ce9d97c2caeaa2e0737d375a5624e (patch)
tree488605295ad82c6521165be20ab74706b5183871
parent56732e03c63afd7b8ca3bdd1a9af2bcda6480f8a (diff)
downloadcflow-master.tar.gz
cflow-master.tar.bz2
Allow the use of volatile and const in typedefsHEADmaster
-rw-r--r--src/parser.c4
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) {

Return to:

Send suggestions and report system problems to the System administrator.