Home | History | Annotate | Download | only in scripts

Lines Matching refs:help

1 /* config2.help.c - config2hep Config.in .config > help.h
37 struct double_list *help;
63 char *dlist_zap(struct double_list **help)
65 struct double_list *dd = dlist_pop(help);
73 int zap_blank_lines(struct double_list **help)
77 while (*help) {
80 s = skip_spaces((*help)->data);
84 free(dlist_zap(help));
93 // Moves *help to new start of text (in case dash lines were at beginning).
97 // If no prefix, *help NULL. If no postfix, *from == *help
98 // if no dashlines returned *from == *help.
100 char **grab_dashlines(struct double_list **help, struct double_list **from,
108 zap_blank_lines(help);
109 *from = *help;
120 if (*from == *help) return 0;
123 // If there was whitespace before this, zap it. This can't take out *help
132 // If *help was at start of dashblock, move it with *from
135 if (*help == *from) *help = 0;
181 dlist_add(&(new->help), line);
189 else if (keyword("help", line)) sym->help_indent = -1;
258 // Collate help according to usage, depends, and .config
271 if (catch->help && (that = keyword("usage:", catch->help->data))) {
276 // Align usage: lines, finding a matching pair so we can suck help
294 tusage = dlist_zap(&throw->help);
295 tdashlines = grab_dashlines(&throw->help, &tfrom, &tlen);
296 cusage = dlist_zap(&catch->help);
297 cdashlines = grab_dashlines(&catch->help, &cfrom, &clen);
298 anchor = catch->help;
316 if (tfrom && tfrom != throw->help) {
317 if (throw->help || catch->help) dlist_add(&cfrom, strdup(""));
322 while (throw->help && throw->help != tfrom)
323 dlist_add(&cfrom, dlist_zap(&throw->help));
344 // zap whitespace at end of catch help text
382 throw->help = anchor->prev->prev;
385 this = throw->help->data + throw->help_indent + 8 + len;
396 // Print out help #defines
400 if (sym->help) {
408 dd = sym->help;
425 if (dd == sym->help) break;