]> andersk Git - splint.git/blobdiff - src/Headers/mtContextNode.h
*** empty log message ***
[splint.git] / src / Headers / mtContextNode.h
index a8fe8166acbc78130c5cba5125c69f7ac57f6a38..b84f60b247342ea93799be25252ee10cefe84ef3 100644 (file)
 
 typedef enum
 {
-  MTC_ANY, MTC_PARAM, MTC_RESULT, 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. */
@@ -33,6 +38,8 @@ 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) ;
 
@@ -40,6 +47,8 @@ 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) /*@*/ ;
This page took 0.132067 seconds and 4 git commands to generate.