Преглед изворни кода

List_addLast correction

master
Nathan R пре 3 година
родитељ
комит
98d4b84778
1 измењених фајлова са 5 додато и 5 уклоњено
  1. +5
    -5
      ccmeta.leg

+ 5
- 5
ccmeta.leg Прегледај датотеку

@ -1005,7 +1005,7 @@ oop listEnd(void)
return list;
}
oop List_addLast(oop list, oop obj) {
void List_addLast(oop list, oop obj) {
assert(list);
map_append(list, obj);
}
@ -1317,9 +1317,9 @@ declaration = @{ C_declarationBegin() }
declarationSpecifiers = @{ int specified= 0 } { listBegin() }
( s:storageClassSpecifier { listAppend(s) }
| s:typeSpecifier @{ specified++ } { listAppend(s) }
#| | s:typedefName &{ !specified++ } { listAppend(s) }
#| | s:typeQualifier { listAppend(s) }
#| | s:functionSpecifier { listAppend(s) }
| s:typedefName &{ !specified++ } { listAppend(s) }
| s:typeQualifier { listAppend(s) }
| s:functionSpecifier { listAppend(s) }
)+ { $$= listEnd() }
| &{gnu} { $$= listEmpty() }
@ -1623,7 +1623,7 @@ externalDeclaration = { yylval = newComment(yytext); }
| ( SEMI &{gnu}
| c:constant { yylval = c; } #################| TODO
| declaration
#| | functionDefinition
| functionDefinition
#| | meta
| &. &{ errmsg= "declaration expected" } error
) { yylval= $$; }

Loading…
Откажи
Сачувај