]> andersk Git - splint.git/blobdiff - src/filelocStack.c
Removed /*bee:...*/ comments.
[splint.git] / src / filelocStack.c
index d35fa392f3c5e02742bde508d957c60ab0933c94..547056cba09b2a2db5b15fe85d690c3f84d15723 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
 */
 /*
@@ -59,7 +59,7 @@ filelocStack_grow (/*@notnull@*/ filelocStack s)
     
   for (i = 0; i < s->nelements; i++)
     {
-      s->elements[i] = oldelements[i];
+                  s->elements[i] = oldelements[i];
     }
   
   sfree (oldelements);
@@ -77,7 +77,7 @@ static void
     }
   
   s->free--;
-  s->elements[s->nelements] = el;
+    s->elements[s->nelements] = el;
   s->nelements++;
 }
 
@@ -96,7 +96,7 @@ void filelocStack_clear (filelocStack s)
 
       for (i = 0; i < s->nelements; i++)
        {
-         fileloc_free (s->elements[i]);
+                         fileloc_free (s->elements[i]);
        }
 
       s->free += s->nelements;
@@ -116,16 +116,15 @@ bool filelocStack_popPushFile (filelocStack s, fileloc el)
 
   for (i = s->nelements - 1; i >= 0; i--)
     {
-      if (fileloc_sameBaseFile (s->elements[i], el))
+                  if (fileloc_sameBaseFile (s->elements[i], el))
        {
          int j;
          
          for (j = i; j < s->nelements; j++)
            {
-             fileloc_free (s->elements[j]);
+                             fileloc_free (s->elements[j]);
            }
-
-         s->elements[i] = el;
+         s->elements[i] = el;
          s->nelements = i + 1;
          return FALSE;
        }
@@ -147,11 +146,11 @@ filelocStack_unparse (filelocStack s)
         {
           if (i == s->nelements - 1)
             {
-              st = message ("%q %q", st, fileloc_unparse (s->elements[i]));
+                              st = message ("%q %q", st, fileloc_unparse (s->elements[i]));
             }
           else
             {
-              st = message ("%q, %q", st, fileloc_unparse (s->elements[i]));
+                              st = message ("%q, %q", st, fileloc_unparse (s->elements[i]));
             }
         }
      }
@@ -170,7 +169,7 @@ int filelocStack_includeDepth (filelocStack s)
       /* the zeroth element doesn't count! */
       for (i = s->nelements - 1; i > 0; i--)
        {
-         if (!fileloc_isSpecialFile (s->elements[i]))
+                         if (!fileloc_isSpecialFile (s->elements[i]))
            {
              depth++;
            }
@@ -197,9 +196,9 @@ filelocStack_printIncludes (filelocStack s)
       /* don't show last two files pushed */
       for (i = s->nelements - 3; i >= 0; i--)
        {
-         if (i == 0 || !fileloc_isSpecialFile (s->elements[i]))
+                         if (i == 0 || !fileloc_isSpecialFile (s->elements[i]))
            {
-             llgenindentmsg (cstring_makeLiteral ("Include site"),
+                             llgenindentmsg (cstring_makeLiteral ("Include site"),
                              s->elements[i]);
            }
        }
@@ -219,7 +218,7 @@ filelocStack_free (/*@only@*/ filelocStack s)
       int i;
       for (i = 0; i < s->nelements; i++)
        {
-         fileloc_free (s->elements[i]); 
+                         fileloc_free (s->elements[i]); 
        }
       
       sfree (s->elements); 
This page took 0.54596 seconds and 4 git commands to generate.