]> andersk Git - splint.git/blobdiff - src/mttok.c
noexpand always false.
[splint.git] / src / mttok.c
index 850874f236afa32b7ac4d1a3c2ea9c251ef8b2d1..b8739bb340cc842c720e460dca0ae792d2981f46 100644 (file)
@@ -1,6 +1,6 @@
 /*
-** LCLint - annotation-assisted static program checker
-** Copyright (C) 1994-2001 University of Virginia,
+** Splint - annotation-assisted static program checker
+** Copyright (C) 1994-2003 University of Virginia,
 **         Massachusetts Institute of Technology
 **
 ** This program is free software; you can redistribute it and/or modify it
 ** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 ** MA 02111-1307, USA.
 **
-** For information on lclint: lclint-request@cs.virginia.edu
-** To report a bug: lclint-bug@cs.virginia.edu
-** For more information: http://lclint.cs.virginia.edu
+** For information on splint: info@splint.org
+** To report a bug: splint-bug@splint.org
+** For more information: http://www.splint.org
 */
 /*
 ** mttok.c - based on lltok.c
 */
 
-# include "lclintMacros.nf"
+# include "splintMacros.nf"
 # include "basic.h"
-
 # include "mtgrammar.h"
 
 cstring
@@ -48,7 +47,10 @@ mttok_unparse (mttok tok)
     case MT_DEFAULT:        lit = "default"; break;
     case MT_REFERENCE:      lit = "reference"; break;
     case MT_PARAMETER:      lit = "parameter"; break;
+    case MT_RESULT:         lit = "result"; break;
     case MT_CLAUSE:         lit = "clause"; break;
+    case MT_LITERAL:        lit = "literal"; break;
+    case MT_NULL:           lit = "null"; break;
     case MT_ANNOTATIONS:    lit = "annotations"; break;
     case MT_ARROW:          lit = "==>"; break;
     case MT_MERGE:          lit = "merge"; break;
@@ -116,6 +118,11 @@ void mttok_free (mttok t)
   sfree (t);
 }
 
+bool mttok_isError (mttok t)
+{
+  return ((t)->tok == MT_ERROR);
+}
+
 bool mttok_isIdentifier (mttok t)
 {
   return ((t)->tok == MT_IDENT);
This page took 0.44198 seconds and 4 git commands to generate.