#include "lclintMacros.nf"#include "llbasic.h"Go to the source code of this file.
Functions | |
| importNodeList | importNodeList_new () |
| importNodeList | importNodeList_add (importNodeList s, importNode el) |
| cstring | importNodeList_unparse (importNodeList s) |
| void | importNodeList_free (importNodeList s) |
|
|
Definition at line 69 of file importNodeList.c. 00070 {
00071 if (s->nspace <= 0)
00072 importNodeList_grow (s);
00073
00074 s->nspace--;
00075 s->elements[s->nelements] = el;
00076 s->nelements++;
00077 return s;
00078 }
|
|
|
Definition at line 103 of file importNodeList.c. Referenced by interfaceNode_free(). 00104 {
00105 int i;
00106
00107 for (i = 0; i < s->nelements; i++)
00108 {
00109 importNode_free (s->elements[i]);
00110 }
00111
00112 sfree (s->elements);
00113 sfree (s);
00114 }
|
|
|
Definition at line 36 of file importNodeList.c. 00037 {
00038 importNodeList s = (importNodeList) dmalloc (sizeof (*s));
00039
00040 s->nelements = 0;
00041 s->nspace = importNodeListBASESIZE;
00042 s->elements = (importNode *)
00043 dmalloc (sizeof (*s->elements) * importNodeListBASESIZE);
00044
00045 return (s);
00046 }
|
|
|
Definition at line 81 of file importNodeList.c. 00082 {
00083 bool first = TRUE;
00084 cstring st = cstring_undefined;
00085
00086 importNodeList_elements (s, current)
00087 {
00088 if (first)
00089 {
00090 st = cstring_copy (ltoken_unparse (current->val));
00091 first = FALSE;
00092 }
00093 else
00094 {
00095 st = message ("%q, %s", st, ltoken_unparse (current->val));
00096 }
00097 } end_importNodeList_elements;
00098
00099 return st;
00100 }
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000