CX_ERROR,
CX_GLOBAL, CX_INNER,
- CX_FUNCTION, CX_FCNHEADER, CX_FCNDECLARATION,
+ CX_FUNCTION, CX_FCNDECLARATION,
CX_MACROFCN, CX_MACROCONST, CX_UNKNOWNMACRO,
CX_ITERDEF, CX_ITEREND,
CX_LCL, CX_LCLLIB, CX_MT
bool savedFlags BOOLBITS;
bool justpopped BOOLBITS;
bool anyExports BOOLBITS;
+ bool inFunctionHeader BOOLBITS;
flagcode library;
void context_enterFunctionHeader (void)
{
llassert (gc.kind == CX_GLOBAL);
- DPRINTF (("Enter function decl"));
- gc.kind = CX_FCNHEADER;
+ DPRINTF (("Enter function header!"));
+ gc.inFunctionHeader = TRUE;
}
void context_exitFunctionHeader (void)
{
- DPRINTF (("Exit function decl"));
- gc.kind = CX_GLOBAL;
+ DPRINTF (("Exit function header!"));
+ gc.inFunctionHeader = FALSE;
}
bool context_inFunctionHeader (void)
{
- return (gc.kind == CX_FCNHEADER);
+ return (gc.inFunctionHeader);
}
void context_enterFunctionDeclaration (uentry e)
gc.stateTable = metaStateTable_create ();
gc.annotTable = annotationTable_create ();
+ gc.inFunctionHeader = FALSE;
+
DPRINTF (("Annotations: \n%s",
cstring_toCharsSafe (annotationTable_unparse (gc.annotTable))));
DPRINTF (("State: \n%s",