X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/edad9a7f4c2871bf9b0652f83696a06f2f46443e..69db2541c57e431cbd87bf1ae1eb25f34bc70743:/src/Headers/context.h diff --git a/src/Headers/context.h b/src/Headers/context.h index 0af5595..546ee56 100644 --- a/src/Headers/context.h +++ b/src/Headers/context.h @@ -58,6 +58,8 @@ extern /*@observer@*/ cstring context_getTrueName (void) /*@*/ ; extern /*@observer@*/ cstring context_getLarchPath (void) /*@*/ ; extern /*@observer@*/ cstring context_getLCLImportDir (void) /*@*/ ; +extern constraintList context_getImplicitFcnConstraints (uentry p_ue) /*@*/ ; + extern bool context_checkExport (uentry p_e) /*@*/ ; extern bool context_checkGlobMod (sRef p_el) /*@*/ ; extern bool context_checkGlobUse (uentry p_glob); @@ -295,6 +297,10 @@ extern clause context_nextBreakClause (void); extern bool context_anyErrors (void) /*@globals internalState@*/ ; extern void context_hasError (void) /*@modifies internalState@*/ ; extern int context_numErrors (void) /*@globals internalState@*/ ; + +extern void context_recordBug (void) /*@modifies internalState@*/ ; +extern int context_numBugs (void) /*@globals internalState@*/ ; + extern bool context_neednl (void); extern void context_setNeednl (void); @@ -331,36 +337,18 @@ extern void context_addAnnotation (/*@only@*/ annotationInfo) extern void context_addMetaState (/*@only@*/ cstring, /*@only@*/ metaStateInfo) /*@modifies internalState@*/ ; -extern valueTable context_createValueTable (sRef p_s, /*@only@*/ stateInfo p_sinfo) +extern valueTable context_createValueTable (sRef p_s, /*@only@*/ stateInfo p_info) /*@globals internalState@*/ ; -extern valueTable context_createGlobalMarkerValueTable (/*@only@*/ stateInfo p_sinfo) +extern valueTable context_createGlobalMarkerValueTable (/*@only@*/ stateInfo p_info) /*@globals internalState@*/ ; 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 */ -/*drl 1/6/2001: I didn't think these functions were solid enough to include in the - stable release of splint. I commented 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); */ - -extern ctype context_setLastStruct (/*@returned@*/ ctype p_s) /*@modifies internalState@*/; -extern ctype context_getLastStruct (/*@returned@*/ /*ctype p_s*/) /*@modifies internalState@*/; - /*drl added 2/4/2002*/ extern bool context_inOldStyleScope (void) /*@*/ ; -extern void context_setGlobalStructInfo (ctype p_ct, constraintList p_list) /*@modifies internalState@*/ ; /*drl added 3/5/2003*/