aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)
719int 719int
720fake_struct(Ident *ident) 720fake_struct(Ident *ident)
721{ 721{
722 while (tok.type == QUALIFIER &&
723 (strcmp(tok.token, "const") == 0 ||
724 strcmp(tok.token, "volatile") == 0))
725 nexttoken();
722 ident->type_end = -1; 726 ident->type_end = -1;
723 if (tok.type == STRUCT) { 727 if (tok.type == STRUCT) {
724 if (nexttoken() == IDENTIFIER) { 728 if (nexttoken() == IDENTIFIER) {

Return to:

Send suggestions and report system problems to the System administrator.