]> andersk Git - splint.git/blobdiff - src/enumNameList.c
Removed /*bee:...*/ comments.
[splint.git] / src / enumNameList.c
index 774db7645a5fb86bfa55da39dca9322ade7a949c..e4a5cd0fc4360493581e93d47d76264fcf0e4921 100644 (file)
@@ -1,6 +1,6 @@
 /*
-** LCLint - annotation-assisted static program checker
-** Copyright (C) 1994-2001 University of Virginia,
+** Splint - annotation-assisted static program checker
+** 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,9 +17,9 @@
 ** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 ** MA 02111-1307, USA.
 **
-** For information on lclint: lclint-request@cs.virginia.edu
-** To report a bug: lclint-bug@cs.virginia.edu
-** For more information: http://lclint.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
 */
 /*
 ** enumNameList.c
@@ -31,7 +31,7 @@
 ** used to be cenum.c
 */
 
-# include "lclintMacros.nf"
+# include "splintMacros.nf"
 # include "basic.h"
 
 enumNameList
@@ -55,7 +55,7 @@ enumNameList_single (/*@keep@*/ enumName t)
   s->nelements = 1;
   s->nspace = enumNameListBASESIZE - 1;
   s->elements = (enumName *) dmalloc (sizeof (*s->elements) * enumNameListBASESIZE);
-  s->elements[0] = t;
+          s->elements[0] = t;
 
   return (s);
 }
@@ -69,7 +69,7 @@ enumNameList_match (enumNameList e1, enumNameList e2)
 
   for (i = 0; i < e1->nelements; i++)
     {
-      if (!cstring_equal (e1->elements[i], e2->elements[i]))
+                              if (!cstring_equal (e1->elements[i], e2->elements[i]))
        return FALSE;
     }
   return TRUE;
@@ -91,7 +91,7 @@ enumNameList_grow (enumNameList s)
 
   for (i = 0; i < s->nelements; i++)
     {
-      newelements[i] = s->elements[i];
+                              newelements[i] = s->elements[i];
     }
 
   sfree (s->elements);
@@ -105,7 +105,7 @@ enumNameList_addh (enumNameList s, /*@keep@*/ enumName el)
     enumNameList_grow (s);
 
   s->nspace--;
-  s->elements[s->nelements] = el;
+    s->elements[s->nelements] = el;
   s->nelements++;
 }
 
@@ -166,11 +166,11 @@ enumNameList_unparse (enumNameList s)
     {
       if (i == 0) 
        {
-         st = cstring_copy (s->elements[i]);
+                         st = cstring_copy (s->elements[i]);
        }
       else
        {
-         st = message ("%q, %s", st, s->elements[i]);
+                         st = message ("%q, %s", st, s->elements[i]);
        }
     }
 
@@ -186,7 +186,7 @@ cstring enumNameList_unparseBrief (enumNameList s)
     {
       if (i == 0)
        {
-         st = cstring_copy (s->elements[i]);
+                         st = cstring_copy (s->elements[i]);
        }
       else if (i == 3 && s->nelements > 5)
        {
@@ -195,7 +195,7 @@ cstring enumNameList_unparseBrief (enumNameList s)
        }
       else
        {
-         st = message ("%q, %s", st, s->elements[i]);
+                         st = message ("%q, %s", st, s->elements[i]);
        }
     }
   
@@ -212,10 +212,10 @@ enumNameList_dump (enumNameList s)
     {
       if (i == 0)
        {
-         st = cstring_copy (s->elements[i]);
+                         st = cstring_copy (s->elements[i]);
        }
       else
-       st = message ("%q,%s", st, s->elements[i]);
+               st = message ("%q,%s", st, s->elements[i]);
     }
   return st;
 }
This page took 0.318049 seconds and 4 git commands to generate.