#include "lclintMacros.nf"#include "llbasic.h"Go to the source code of this file.
Functions | |
| pairNodeList | pairNodeList_new () |
| void | pairNodeList_addh (pairNodeList s, pairNode el) |
| cstring | pairNodeList_unparse (pairNodeList s) |
| void | pairNodeList_free ( pairNodeList s) |
|
|
Definition at line 68 of file pairNodeList.c. 00069 {
00070 llassert (pairNodeList_isDefined (s));
00071 llassert (pairNodeListBASESIZE > 0);
00072
00073 if (s->nspace <= 0)
00074 pairNodeList_grow (s);
00075
00076 s->nspace--;
00077 s->elements[s->nelements] = el;
00078 s->nelements++;
00079 }
|
|
|
Definition at line 103 of file pairNodeList.c. Referenced by enteringClaimScope(), enteringFcnScope(), and o_fctInfo(). 00104 {
00105 if (pairNodeList_isDefined (s))
00106 {
00107 int i;
00108 for (i = 0; i < s->nelements; i++)
00109 {
00110 pairNode_free (s->elements[i]);
00111 }
00112
00113 sfree (s->elements);
00114 sfree (s);
00115 }
00116 }
|
|
|
Definition at line 36 of file pairNodeList.c. Referenced by o_fctInfo(). 00037 {
00038 pairNodeList s = (pairNodeList) dmalloc (sizeof (*s));
00039
00040 s->nelements = 0;
00041 s->nspace = pairNodeListBASESIZE;
00042 s->elements = (pairNode *)
00043 dmalloc (sizeof (*s->elements) * pairNodeListBASESIZE);
00044
00045 return (s);
00046 }
|
|
|
Definition at line 82 of file pairNodeList.c. 00083 {
00084 cstring st = cstring_undefined;
00085
00086 if (s != (pairNodeList)0)
00087 {
00088 pairNodeList_elements (s, current)
00089 {
00090 if (current != NULL)
00091 {
00092 st = message ("%q%s %s; ", st,
00093 sort_unparseName (current->sort),
00094 ltoken_getRawString (current->tok));
00095 }
00096 } end_pairNodeList_elements;
00097 }
00098
00099 return st;
00100 }
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000