#include "lclintMacros.nf"#include "llbasic.h"Go to the source code of this file.
Functions | |
| declaratorNodeList | declaratorNodeList_new () |
| declaratorNodeList | declaratorNodeList_add (declaratorNodeList s, declaratorNode el) |
| cstring | declaratorNodeList_unparse (declaratorNodeList s) |
| declaratorNodeList | declaratorNodeList_copy (declaratorNodeList s) |
| void | declaratorNodeList_free (declaratorNodeList s) |
|
|
Definition at line 72 of file declaratorNodeList.c. Referenced by declaratorNodeList_copy(). 00073 {
00074 if (s->nspace <= 0)
00075 declaratorNodeList_grow (s);
00076
00077 s->nspace--;
00078 s->elements[s->nelements] = el;
00079 s->nelements++;
00080
00081 return s;
00082 }
|
|
|
Definition at line 107 of file declaratorNodeList.c. Referenced by stDeclNode_copy(). 00108 {
00109 declaratorNodeList ret = declaratorNodeList_new ();
00110
00111 declaratorNodeList_elements (s, el)
00112 {
00113 ret = declaratorNodeList_add (ret, declaratorNode_copy (el));
00114 } end_declaratorNodeList_elements ;
00115
00116 return ret;
00117 }
|
|
|
Definition at line 120 of file declaratorNodeList.c. Referenced by stDeclNode_free(). 00121 {
00122 int i;
00123 for (i = 0; i < s->nelements; i++)
00124 {
00125 declaratorNode_free (s->elements[i]);
00126 }
00127
00128 sfree (s->elements);
00129 sfree (s);
00130 }
|
|
|
Definition at line 36 of file declaratorNodeList.c. Referenced by declaratorNodeList_copy(). 00037 {
00038 declaratorNodeList s = (declaratorNodeList) dmalloc (sizeof (*s));
00039
00040 s->nelements = 0;
00041 s->nspace = declaratorNodeListBASESIZE;
00042 s->elements = (declaratorNode *)
00043 dmalloc (sizeof (*s->elements) * declaratorNodeListBASESIZE);
00044
00045 return (s);
00046 }
|
|
|
Definition at line 85 of file declaratorNodeList.c. Referenced by lclTypeSpecNode_unparseComments(), and stDeclNodeList_unparse(). 00086 {
00087 cstring st = cstring_undefined;
00088 bool first = TRUE;
00089
00090 declaratorNodeList_elements (s, current)
00091 {
00092 if (first)
00093 {
00094 st = declaratorNode_unparse (current);
00095 first = FALSE;
00096 }
00097 else
00098 {
00099 st = message ("%q, %q", st, declaratorNode_unparse (current));
00100 }
00101 } end_declaratorNodeList_elements;
00102
00103 return st;
00104 }
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000