]> andersk Git - splint.git/blobdiff - src/globalsClause.c
Fixed internal bug reporting for redefinition of __func__
[splint.git] / src / globalsClause.c
index 4cf0231e11677b3021033844d01e15e31b484b23..a0c9fca6a33d18a39a1b712592ebc81fd0b95fd6 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
@@ -17,8 +17,8 @@
 ** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 ** MA 02111-1307, USA.
 **
-** For information on splint: splint@cs.virginia.edu
-** To report a bug: splint-bug@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
 */
 /*
@@ -33,8 +33,9 @@ globalsClause_create (lltok tok, globSet gl)
 {
   globalsClause res = (globalsClause) dmalloc (sizeof (*res));
   res->globs = gl;
-  res->loc = lltok_stealLoc (tok);
-  /*@i423@*/ return res; /* releases doesn't seem to work right here... */
+  res->loc = fileloc_copy (lltok_getLoc (tok));
+  lltok_free (tok); 
+  return res; /* releases doesn't seem to work right here... */
 }
 
 globSet globalsClause_getGlobs (globalsClause gclause)
@@ -53,7 +54,7 @@ extern void globalsClause_free (globalsClause gclause)
 {
   if (gclause == NULL)
     {
-      return; /*@i435 shouldn't ever need this? */
+      return; /* shouldn't ever need this? */
     }
 
   globSet_free (gclause->globs);
This page took 0.052548 seconds and 4 git commands to generate.