# include "lclintMacros.nf"
# include "llbasic.h"
+# include "mtincludes.h"
# ifndef NOLCL
# include "usymtab_interface.h"
static void context_exitClausePlain (void) /*@modifies gc@*/ ;
static void context_setJustPopped (void) /*@modifies gc.justpopped@*/ ;
static void context_setValue (flagcode p_flag, int p_val) /*@modifies gc.flags@*/ ;
-/*drl fix*/ static void context_setFlag (flagcode p_f, bool p_b)
+static void context_setFlag (flagcode p_f, bool p_b)
/*@modifies gc.flags@*/ ;
static void
return gc.preprocessing;
}
+bool context_loadingLibrary (void)
+{
+ return (fileloc_isLib (g_currentloc));
+}
+
bool context_inXHFile (void)
{
return (fileloc_isXHFile (g_currentloc));
gc.flags[FLG_SKIPPOSIXHEADERS] = TRUE;
gc.flags[FLG_SYSTEMDIREXPAND] = TRUE;
gc.flags[FLG_UNRECOGCOMMENTS] = TRUE;
+ gc.flags[FLG_UNRECOGFLAGCOMMENTS] = TRUE;
gc.flags[FLG_CASTFCNPTR] = TRUE;
gc.flags[FLG_DOLCS] = TRUE;
gc.flags[FLG_USEVARARGS] = TRUE;
}
else
{
+ DPRINTF (("Adding meta state: %s", mname));
metaStateTable_insert (gc.stateTable, mname, msinfo);
}
}
valueTable res = valueTable_create (metaStateTable_size (gc.stateTable));
/*@i32 should use smaller value... */
DPRINTF (("Value table for: %s", sRef_unparse (s)));
-
+
metaStateTable_elements (gc.stateTable, msname, msi)
{
mtContextNode context = metaStateInfo_getContext (msi);
DPRINTF (("Create: %s", metaStateInfo_unparse (msi)));
llassert (cstring_equal (msname, metaStateInfo_getName (msi)));
- valueTable_insert (res,
- cstring_copy (metaStateInfo_getName (msi)),
- stateValue_create (metaStateInfo_getDefaultValue (msi, s),
- stateInfo_undefined));
+ valueTable_insert
+ (res,
+ cstring_copy (metaStateInfo_getName (msi)),
+ stateValue_createImplicit (metaStateInfo_getDefaultValue (msi, s),
+ stateInfo_undefined));
}
else
{