Lines Matching defs:list
16 * notice, this list of conditions and the following disclaimer.
18 * notice, this list of conditions and the following disclaimer in the
87 struct arglist *list;
117 emptyarglist(struct arglist *list)
120 list->args = list->smallarg;
121 list->count = 0;
122 list->capacity = sizeof(list->smallarg) / sizeof(list->smallarg[0]);
126 appendarglist(struct arglist *list, char *str)
131 if (list->count >= list->capacity) {
132 newcapacity = list->capacity * 2;
138 memcpy(newargs, list->args, list->count * sizeof(newargs[0]));
139 list->args = newargs;
140 list->capacity = newcapacity;
142 list->args[list->count++] = str;
180 expandmeta(grabstackstr(p), dst->list);
182 appendarglist(dst->list, grabstackstr(p));
187 appendarglist(dst->list, NULL);
188 dst->list->count--;
218 * Perform expansions on an argument, placing the resulting list of arguments
238 exparg.list = arglist;
251 expandmeta(grabstackstr(expdest), exparg.list);
253 appendarglist(exparg.list, grabstackstr(expdest));
1033 * The results are stored in the list dstlist.