#include "lclintMacros.nf"#include "basic.h"Go to the source code of this file.
Functions | |
| idDeclList | idDeclList_singleton ( idDecl e) |
| idDeclList | idDeclList_add (idDeclList s, idDecl el) |
| cstring | idDeclList_unparse (idDeclList s) |
| void | idDeclList_free (idDeclList s) |
|
|
Definition at line 66 of file idDeclList.c. 00067 {
00068 if (s->nspace <= 0)
00069 idDeclList_grow (s);
00070
00071 s->nspace--;
00072 s->elements[s->nelements] = el;
00073 s->nelements++;
00074
00075 return s;
00076 }
|
|
|
Definition at line 99 of file idDeclList.c. Referenced by fixUentryList(). 00100 {
00101 int i;
00102 for (i = 0; i < s->nelements; i++)
00103 {
00104 idDecl_free (s->elements[i]);
00105 }
00106
00107 sfree (s->elements);
00108 sfree (s);
00109 }
|
|
|
Definition at line 36 of file idDeclList.c. 00037 {
00038 idDeclList s = (idDeclList) dmalloc (sizeof (*s));
00039
00040 s->nelements = 1;
00041 s->nspace = idDeclListBASESIZE - 1;
00042 s->elements = (idDecl *) dmalloc (sizeof (*s->elements) * idDeclListBASESIZE);
00043 s->elements[0] = e;
00044 return (s);
00045 }
|
|
|
Definition at line 79 of file idDeclList.c. 00080 {
00081 int i;
00082 cstring st = cstring_makeLiteral ("[");
00083
00084 for (i = 0; i < s->nelements; i++)
00085 {
00086 if (i == 0)
00087 {
00088 st = message ("%q %q", st, idDecl_unparse (s->elements[i]));
00089 }
00090 else
00091 st = message ("%q, %q", st, idDecl_unparse (s->elements[i]));
00092 }
00093
00094 st = message ("%q ]", st);
00095 return st;
00096 }
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000