#include "lclintMacros.nf"#include "llbasic.h"Go to the source code of this file.
Functions | |
| typeNameNodeList | typeNameNodeList_new () |
| typeNameNodeList | typeNameNodeList_add (typeNameNodeList s, typeNameNode el) |
| cstring | typeNameNodeList_unparse (typeNameNodeList s) |
| void | typeNameNodeList_free (typeNameNodeList s) |
|
|
Definition at line 68 of file typeNameNodeList.c. 00069 {
00070 if (s->nspace <= 0)
00071 typeNameNodeList_grow (s);
00072
00073 s->nspace--;
00074 s->elements[s->nelements] = el;
00075 s->nelements++;
00076
00077 return s;
00078 }
|
|
|
Definition at line 102 of file typeNameNodeList.c. Referenced by makeRenamingNode(). 00103 {
00104 int i;
00105 for (i = 0; i < s->nelements; i++)
00106 {
00107 typeNameNode_free (s->elements[i]);
00108 }
00109
00110 sfree (s->elements);
00111 sfree (s);
00112 }
|
|
|
Definition at line 35 of file typeNameNodeList.c. 00036 {
00037 typeNameNodeList s = (typeNameNodeList) dmalloc (sizeof (*s));
00038
00039 s->nelements = 0;
00040 s->nspace = typeNameNodeListBASESIZE;
00041 s->elements = (typeNameNode *)
00042 dmalloc (sizeof (*s->elements) * typeNameNodeListBASESIZE);
00043
00044 return (s);
00045 }
|
|
|
Definition at line 81 of file typeNameNodeList.c. 00082 {
00083 cstring st = cstring_undefined;
00084 bool first = TRUE;
00085
00086 typeNameNodeList_elements (s, current)
00087 {
00088 if (first)
00089 {
00090 st = typeNameNode_unparse (current);
00091 first = FALSE;
00092 }
00093 else
00094 {
00095 st = message ("%q, %q", st, typeNameNode_unparse (current));
00096 }
00097 } end_typeNameNodeList_elements;
00098 return (st);
00099 }
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000