Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

fcnNodeList.c File Reference

#include "lclintMacros.nf"
#include "llbasic.h"

Go to the source code of this file.

Functions

fcnNodeList fcnNodeList_new ()
fcnNodeList fcnNodeList_add (fcnNodeList s, fcnNode el)
cstring fcnNodeList_unparse (fcnNodeList s)
void fcnNodeList_free ( fcnNodeList s)


Function Documentation

fcnNodeList fcnNodeList_add ( fcnNodeList s,
fcnNode el )
 

Definition at line 78 of file fcnNodeList.c.

00079 {
00080   if (fcnNodeList_isUndefined (s))
00081     {
00082       s = fcnNodeList_newEmpty ();
00083     }
00084 
00085   if (s->nspace <= 0)
00086     fcnNodeList_grow (s);
00087 
00088   s->nspace--;
00089   s->elements[s->nelements] = el;
00090   s->nelements++;
00091 
00092   return s;
00093 }

void fcnNodeList_free ( fcnNodeList s )
 

Definition at line 113 of file fcnNodeList.c.

00114 {
00115   if (s != NULL)
00116     {
00117       int i;
00118       for (i = 0; i < s->nelements; i++)
00119         {
00120           fcnNode_free (s->elements[i]); 
00121         }
00122       
00123       sfree (s->elements);
00124       sfree (s);
00125     
00126     }
00127 }

fcnNodeList fcnNodeList_new ( )
 

Definition at line 36 of file fcnNodeList.c.

Referenced by makeAbstBodyNode2().

00037 {
00038   return fcnNodeList_undefined;
00039 }

cstring fcnNodeList_unparse ( fcnNodeList s )
 

Definition at line 96 of file fcnNodeList.c.

00097 {
00098   int i;
00099   cstring st = cstring_undefined;
00100 
00101   if (fcnNodeList_isDefined (s))
00102     {
00103       for (i = 0; i < s->nelements; i++)
00104         {
00105           st = message ("%q%q\n", st, fcnNode_unparse (s->elements[i]));
00106         }
00107     }
00108 
00109   return st;
00110 }


Generated at Fri Nov 3 18:57:58 2000 for LCLint by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000