]> andersk Git - splint.git/blobdiff - src/sRefTable.c
Fixed bug in usymtab clearing derived sRefs when exiting scope.
[splint.git] / src / sRefTable.c
index 9ee3bb77d154a44b9588d58a29ea10256d24846d..737677361ad391189f23b311cc5e5032490c408b 100644 (file)
@@ -89,6 +89,10 @@ sRefTable_add (sRefTable s, /*@owned@*/ sRef el)
 void
 sRefTable_clear (sRefTable s)
 {
+# ifdef DEBUGSPLINT
+  usymtab_checkAllValid ();
+# endif
+
   if (sRefTable_isDefined (s))
     {
       int i;
@@ -103,6 +107,10 @@ sRefTable_clear (sRefTable s)
       s->nspace += s->entries;
       s->entries = 0;
     }
+
+# ifdef DEBUGSPLINT
+  usymtab_checkAllValid ();
+# endif
 }
 
 static int sRefTable_size (sRefTable s)
This page took 0.063069 seconds and 4 git commands to generate.