]> andersk Git - splint.git/blobdiff - src/flagMarker.c
Merged code tree with Dave Evans's version. Many changes to numberous to list....
[splint.git] / src / flagMarker.c
index 86b0ca85fea3bb5ff1d0b53dad014e4584f1b2b4..a34d2813e989786fec321b55d836400f8b68a970 100644 (file)
@@ -1,6 +1,6 @@
 /*
 ** LCLint - annotation-assisted static program checker
-** Copyright (C) 1994-2000 University of Virginia,
+** Copyright (C) 1994-2001 University of Virginia,
 **         Massachusetts Institute of Technology
 **
 ** This program is free software; you can redistribute it and/or modify it
@@ -71,6 +71,7 @@ flagMarker flagMarker_createIgnoreCount (int count, fileloc loc)
   c->info.nerrors = count;
   c->loc = fileloc_copy (loc); 
 
+  DPRINTF (("Create ignore count: %s", flagMarker_unparse (c)));
   return c;
 }
 
@@ -113,7 +114,7 @@ cstring flagMarker_unparse (flagMarker c)
     case FMK_LOCALSET:
       return (message ("%q: %s%s", 
                       fileloc_unparse (c->loc), ynm_unparseCode (c->info.set), 
-                      flagcode_name (c->code)));
+                      flagcode_unparse (c->code)));
     case FMK_IGNORECOUNT:
       return (message ("%q: ignore count %d", 
                       fileloc_unparse (c->loc), c->info.nerrors));
@@ -126,7 +127,7 @@ cstring flagMarker_unparse (flagMarker c)
     case FMK_SUPPRESS:
       return (message ("%q: suppress %s", 
                       fileloc_unparse (c->loc),
-                      flagcode_name (c->code)));
+                      flagcode_unparse (c->code)));
     }
 
   BADBRANCH;
@@ -134,6 +135,7 @@ cstring flagMarker_unparse (flagMarker c)
   
 void flagMarker_free (/*@only@*/ flagMarker c)
 {
+  fileloc_free (c->loc); /* evans 2001-03-24: LCLint caught this... */
   sfree (c);
 }
 
This page took 0.028391 seconds and 4 git commands to generate.