Lines Matching refs:help

1 /* config2.help.c - config2hep Config.in .config > help.h
118 struct double_list *help;
144 char *dlist_zap(struct double_list **help)
146 struct double_list *dd = dlist_pop(help);
154 int zap_blank_lines(struct double_list **help)
158 while (*help) {
161 s = skip_spaces((*help)->data);
165 free(dlist_zap(help));
174 // Moves *help to new start of text (in case dash lines were at beginning).
178 // If no prefix, *help NULL. If no postfix, *from == *help
179 // if no dashlines returned *from == *help.
181 char **grab_dashlines(struct double_list **help, struct double_list **from,
189 zap_blank_lines(help);
190 *from = *help;
201 if (*from == *help) return 0;
204 // If there was whitespace before this, zap it. This can't take out *help
213 // If *help was at start of dashblock, move it with *from
216 if (*help == *from) *help = 0;
262 dlist_add(&(new->help), line);
270 else if (keyword("help", line)) sym->help_indent = -1;
339 // Collate help according to usage, depends, and .config
352 if (catch->help && (that = keyword("usage:", catch->help->data))) {
357 // Align usage: lines, finding a matching pair so we can suck help
375 tusage = dlist_zap(&throw->help);
376 tdashlines = grab_dashlines(&throw->help, &tfrom, &tlen);
377 cusage = dlist_zap(&catch->help);
378 cdashlines = grab_dashlines(&catch->help, &cfrom, &clen);
379 anchor = catch->help;
397 if (tfrom && tfrom != throw->help) {
398 if (throw->help || catch->help) dlist_add(&cfrom, strdup(""));
403 while (throw->help && throw->help != tfrom)
404 dlist_add(&cfrom, dlist_zap(&throw->help));
425 // zap whitespace at end of catch help text
463 throw->help = anchor->prev->prev;
466 this = throw->help->data + throw->help_indent + 8 + len;
477 // Print out help #defines
481 if (sym->help) {
491 dd = sym->help;
515 if (dd == sym->help) break;