]> andersk Git - splint.git/blobdiff - src/valueTable.c
Fixed internal bug reporting for redefinition of __func__
[splint.git] / src / valueTable.c
index 623b811f19d35cf8827ed5cf7e141b811a59df45..c9f20864662618229b05d650023d7a99c42fdbb0 100644 (file)
@@ -1,6 +1,6 @@
 /*
 ** Splint - annotation-assisted static program checker
-** Copyright (C) 1994-2002 University of Virginia,
+** Copyright (C) 1994-2003 University of Virginia,
 **         Massachusetts Institute of Technology
 **
 ** This program is free software; you can redistribute it and/or modify it
@@ -67,12 +67,13 @@ cstring valueTable_unparse (valueTable h)
 
 void valueTable_insert (valueTable h, cstring key, stateValue value)
 {
+  llassert (stateValue_isDefined (value));
   genericTable_insert ((genericTable) (h), key, (void *) (value));
 }
 
 void valueTable_update (valueTable h, cstring key, stateValue newval) 
 {
   DPRINTF (("Update: %s -> %s", key, stateValue_unparse (newval)));
-
+  llassert (stateValue_isDefined (newval));
   genericTable_update ((genericTable) (h), key, (void *) (newval));
 }
This page took 0.066944 seconds and 4 git commands to generate.