X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/7ebcc5bb1729918edf2ba5b4b9d5a67cdea4afb5..86d93ed383c14be2a4548bd8ab98e4c1a79cb1f0:/src/Headers/context.h diff --git a/src/Headers/context.h b/src/Headers/context.h index 7ecb9b3..2a1ebb0 100644 --- a/src/Headers/context.h +++ b/src/Headers/context.h @@ -39,6 +39,9 @@ extern bool context_loadingLibrary (void) /*@*/ ; extern void context_setInCommandLine (void) /*@modifies internalState@*/ ; extern void context_clearInCommandLine (void) /*@modifies internalState@*/ ; + +extern void context_checkGlobalScope (void) /*@modifies internalState@*/ ; + extern bool context_isInCommandLine (void) /*@*/ ; extern bool context_inXHFile (void) /*@*/ ; @@ -88,6 +91,7 @@ extern void context_hideShowscan (void); extern void context_unhideShowscan (void); extern void context_setMode (cstring p_s); +extern void context_setModeNoWarn (cstring p_s); extern void context_exitAllClauses (void); extern void context_exitAllClausesQuiet (void); extern bool context_inHeader (void); @@ -137,7 +141,7 @@ extern bool context_globAccess (sRef p_s); extern /*@observer@*/ globSet context_getUsedGlobs (void); extern bool context_hasAccess (typeId p_t); extern bool context_couldHaveAccess (typeId p_t); -extern /*@only@*/ cstring context_unparse (void); +extern /*@only@*/ cstring context_unparse (void) /*@*/ ; extern void context_setFunctionDefined (fileloc p_loc); extern void context_setFlagTemp (flagcode p_f, bool p_b); @@ -206,7 +210,7 @@ extern bool context_inFunctionLike (void) /*@*/ ; extern void context_setMacroMissingParams (void); extern void context_resetMacroMissingParams (void); extern bool context_isMacroMissingParams (void) /*@*/ ; -extern bool context_inMacroUnknown (void) /*@*/ ; +extern bool context_inUnknownMacro (void) /*@*/ ; /*@observer@*/ cstring context_getDump (void) /*@*/ ; /*@observer@*/ cstring context_getMerge (void) /*@*/ ; @@ -336,6 +340,28 @@ extern valueTable context_createGlobalMarkerValueTable (/*@only@*/ stateInfo p_s extern int context_getBugsLimit (void) /*@*/ ; # define context_getBugsLimit() ((int)context_getValue(FLG_BUGSLIMIT)) +/*drl 12/30/2001 these are some ugly functions that were added to facilitate struct annotations */ + + +extern bool hasInvariants (ctype p_ct); + +/*drl 1/6/2001: I didn't think these functions were solid enough to include in the + stable release of splint. I coomented them out so that they won't break anything + but didn't delete them because they will be fixed and included later +*/ + +/*extern void setGlobalStructInfo(ctype p_ct, constraintList p_list); */ + +/*extern constraintList getInvariants (ctype p_ct); */ + +/* static int getSref (ctype ct, sRef s); */ + +/* sRef fixSref (ctype p_ct, sRef p_base, sRef p_fix); */ + +ctype context_setLastStruct (/*@returned@*/ ctype p_s) /*@modifies internalState@*/; +ctype context_getLastStruct (/*@returned@*/ /*ctype p_s*/) /*@modifies internalState@*/; + + # else # error "Multiple include" # endif