170 /* Shift all elements down one position, starting at the entry to delete. */ |
170 /* Shift all elements down one position, starting at the entry to delete. */ |
171 for (int i = pos; i < n-1; i++) elements[i] = elements[i+1]; |
171 for (int i = pos; i < n-1; i++) elements[i] = elements[i+1]; |
172 /* corrent the new size */ |
172 /* corrent the new size */ |
173 n--; |
173 n--; |
174 /* elements = (symbol_c **)realloc(elements, n * sizeof(symbol_c *)); */ |
174 /* elements = (symbol_c **)realloc(elements, n * sizeof(symbol_c *)); */ |
175 } |
175 /* TODO: adjust the location parameters, taking into account the removed element. */ |
|
176 } |
|
177 |
|
178 |
|
179 /* remove element at position pos. */ |
|
180 void list_c::clear(void) { |
|
181 n = 0; |
|
182 /* TODO: adjust the location parameters, taking into account the removed element. */ |
|
183 } |
|
184 |
176 |
185 |
177 #define SYM_LIST(class_name_c, ...) \ |
186 #define SYM_LIST(class_name_c, ...) \ |
178 class_name_c::class_name_c( \ |
187 class_name_c::class_name_c( \ |
179 int fl, int fc, const char *ffile, long int forder, \ |
188 int fl, int fc, const char *ffile, long int forder, \ |
180 int ll, int lc, const char *lfile, long int lorder) \ |
189 int ll, int lc, const char *lfile, long int lorder) \ |