#include "lclintMacros.nf"#include "llbasic.h"Go to the source code of this file.
Functions | |
| varDeclarationNodeList | varDeclarationNodeList_new () |
| void | varDeclarationNodeList_addh (varDeclarationNodeList s, varDeclarationNode el) |
| cstring | varDeclarationNodeList_unparse (varDeclarationNodeList s) |
| void | varDeclarationNodeList_free (varDeclarationNodeList s) |
|
|
Definition at line 68 of file varDeclarationNodeList.c. 00069 {
00070 if (s->nspace <= 0)
00071 varDeclarationNodeList_grow (s);
00072
00073 s->nspace--;
00074 s->elements[s->nelements] = el;
00075 s->nelements++;
00076 }
|
|
|
Definition at line 97 of file varDeclarationNodeList.c. Referenced by fcnNode_free(). 00098 {
00099 int i;
00100 for (i = 0; i < s->nelements; i++)
00101 {
00102 varDeclarationNode_free (s->elements[i]);
00103 }
00104
00105 sfree (s->elements);
00106 sfree (s);
00107 }
|
|
|
Definition at line 35 of file varDeclarationNodeList.c. Referenced by fcnNode_fromDeclarator(). 00036 {
00037 varDeclarationNodeList s = (varDeclarationNodeList) dmalloc (sizeof (*s));
00038
00039 s->nelements = 0;
00040 s->nspace = varDeclarationNodeListBASESIZE;
00041 s->elements = (varDeclarationNode *)
00042 dmalloc (sizeof (*s->elements) * varDeclarationNodeListBASESIZE);
00043
00044 return (s);
00045 }
|
|
|
Definition at line 79 of file varDeclarationNodeList.c. Referenced by claimNode_unparse(), and fcnNode_unparse(). 00080 {
00081 cstring st = cstring_undefined;
00082
00083 varDeclarationNodeList_elements (s, current)
00084 {
00085 if (current->isPrivate)
00086 st = message ("%q private ", st);
00087
00088 st = message ("%q%q %q;\n", st, lclTypeSpecNode_unparse (current->type),
00089 initDeclNodeList_unparse (current->decls));
00090 } end_varDeclarationNodeList_elements;
00091
00092 return st;
00093 }
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000