]> andersk Git - splint.git/blobdiff - src/Headers/mtContextNode.h
Updated library headers to include some missing functions.
[splint.git] / src / Headers / mtContextNode.h
index b87e6d987915a8fd9018fcc718b7d59d411a95ec..567d2a9211b74097ed1fb830d05de4aa59eba03a 100644 (file)
 
 typedef enum
 {
-  MTC_ANY, MTC_PARAM, MTC_REFERENCE, MTC_CLAUSE
+  MTC_ANY = 0, MTC_PARAM, MTC_RESULT, MTC_REFERENCE, MTC_CLAUSE, MTC_LITERAL, MTC_NULL
 } mtContextKind ;
 
+/*@constant int MTC_NUMCONTEXTS@*/
+/*@+enumint@*/
+# define MTC_NUMCONTEXTS (MTC_NULL + 1)
+/*@=enumint@*/
+
 struct s_mtContextNode {
   mtContextKind context;
   ctype type; /* This state only applies to types matching. */
@@ -31,13 +36,19 @@ extern cstring mtContextNode_unparse (mtContextNode) /*@*/ ;
 extern mtContextNode mtContextNode_createAny (void) /*@*/ ;
 extern mtContextNode mtContextNode_createParameter (ctype) /*@*/ ;
 extern mtContextNode mtContextNode_createReference (ctype) /*@*/ ;
+extern mtContextNode mtContextNode_createResult (ctype) /*@*/ ;
 extern mtContextNode mtContextNode_createClause (ctype) /*@*/ ;
+extern mtContextNode mtContextNode_createNull (ctype) /*@*/ ;
+extern mtContextNode mtContextNode_createLiteral (ctype) /*@*/ ;
 
 extern void mtContextNode_free (/*@only@*/ mtContextNode) ;
 
-extern bool mtContextNode_isRef (mtContextNode) /*@*/;
+extern bool mtContextNode_isReference (mtContextNode) /*@*/;
+extern bool mtContextNode_isResult (mtContextNode) /*@*/;
 extern bool mtContextNode_isParameter (mtContextNode) /*@*/;
 extern bool mtContextNode_isClause (mtContextNode) /*@*/;
+extern bool mtContextNode_isLiteral (mtContextNode) /*@*/;
+extern bool mtContextNode_isNull (mtContextNode) /*@*/;
 
 extern bool mtContextNode_matchesEntry (mtContextNode, uentry) /*@*/ ;
 extern bool mtContextNode_matchesRef (mtContextNode, sRef) /*@*/ ;
@@ -45,6 +56,8 @@ extern bool mtContextNode_matchesRef (mtContextNode, sRef) /*@*/ ;
 extern bool mtContextNode_matchesRefStrict (mtContextNode, sRef) /*@*/ ;
    /* Doesn't allow matches with unknown type. */
 
+extern void mtContextNode_showRefError (mtContextNode, sRef) ;
+
 # else
 # error "Multiple include"
 # endif
This page took 0.035924 seconds and 4 git commands to generate.