zconf.y 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. %{
  2. /*
  3. * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
  4. * Released under the terms of the GNU GPL v2.0.
  5. */
  6. #include <ctype.h>
  7. #include <stdarg.h>
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <string.h>
  11. #include <stdbool.h>
  12. #define LKC_DIRECT_LINK
  13. #include "lkc.h"
  14. #include "zconf.hash.c"
  15. #define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt)
  16. #define PRINTD 0x0001
  17. #define DEBUG_PARSE 0x0002
  18. int cdebug = PRINTD;
  19. extern int zconflex(void);
  20. static void zconfprint(const char *err, ...);
  21. static void zconf_error(const char *err, ...);
  22. static void zconferror(const char *err);
  23. static bool zconf_endtoken(struct kconf_id *id, int starttoken, int endtoken);
  24. struct symbol *symbol_hash[257];
  25. static struct menu *current_menu, *current_entry;
  26. #define YYDEBUG 0
  27. #if YYDEBUG
  28. #define YYERROR_VERBOSE
  29. #endif
  30. %}
  31. %expect 26
  32. %union
  33. {
  34. char *string;
  35. struct file *file;
  36. struct symbol *symbol;
  37. struct expr *expr;
  38. struct menu *menu;
  39. struct kconf_id *id;
  40. }
  41. %token <id>T_MAINMENU
  42. %token <id>T_MENU
  43. %token <id>T_ENDMENU
  44. %token <id>T_SOURCE
  45. %token <id>T_CHOICE
  46. %token <id>T_ENDCHOICE
  47. %token <id>T_COMMENT
  48. %token <id>T_CONFIG
  49. %token <id>T_MENUCONFIG
  50. %token <id>T_HELP
  51. %token <string> T_HELPTEXT
  52. %token <id>T_IF
  53. %token <id>T_ENDIF
  54. %token <id>T_DEPENDS
  55. %token <id>T_REQUIRES
  56. %token <id>T_OPTIONAL
  57. %token <id>T_PROMPT
  58. %token <id>T_TYPE
  59. %token <id>T_DEFAULT
  60. %token <id>T_SELECT
  61. %token <id>T_RANGE
  62. %token <id>T_OPTION
  63. %token <id>T_ON
  64. %token <string> T_WORD
  65. %token <string> T_WORD_QUOTE
  66. %token T_UNEQUAL
  67. %token T_CLOSE_PAREN
  68. %token T_OPEN_PAREN
  69. %token T_EOL
  70. %left T_OR
  71. %left T_AND
  72. %left T_EQUAL T_UNEQUAL
  73. %nonassoc T_NOT
  74. %type <string> prompt
  75. %type <symbol> symbol
  76. %type <expr> expr
  77. %type <expr> if_expr
  78. %type <id> end
  79. %type <id> option_name
  80. %type <menu> if_entry menu_entry choice_entry
  81. %type <string> symbol_option_arg
  82. %destructor {
  83. fprintf(stderr, "%s:%d: missing end statement for this entry\n",
  84. $$->file->name, $$->lineno);
  85. if (current_menu == $$)
  86. menu_end_menu();
  87. } if_entry menu_entry choice_entry
  88. %%
  89. input: stmt_list;
  90. stmt_list:
  91. /* empty */
  92. | stmt_list common_stmt
  93. | stmt_list choice_stmt
  94. | stmt_list menu_stmt
  95. | stmt_list T_MAINMENU prompt nl
  96. | stmt_list end { zconf_error("unexpected end statement"); }
  97. | stmt_list T_WORD error T_EOL { zconf_error("unknown statement \"%s\"", $2); }
  98. | stmt_list option_name error T_EOL
  99. {
  100. zconf_error("unexpected option \"%s\"", kconf_id_strings + $2->name);
  101. }
  102. | stmt_list error T_EOL { zconf_error("invalid statement"); }
  103. ;
  104. option_name:
  105. T_DEPENDS | T_PROMPT | T_TYPE | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT
  106. ;
  107. common_stmt:
  108. T_EOL
  109. | if_stmt
  110. | comment_stmt
  111. | config_stmt
  112. | menuconfig_stmt
  113. | source_stmt
  114. ;
  115. option_error:
  116. T_WORD error T_EOL { zconf_error("unknown option \"%s\"", $1); }
  117. | error T_EOL { zconf_error("invalid option"); }
  118. ;
  119. /* config/menuconfig entry */
  120. config_entry_start: T_CONFIG T_WORD T_EOL
  121. {
  122. struct symbol *sym = sym_lookup($2, 0);
  123. sym->flags |= SYMBOL_OPTIONAL;
  124. menu_add_entry(sym);
  125. printd(DEBUG_PARSE, "%s:%d:config %s\n", zconf_curname(), zconf_lineno(), $2);
  126. };
  127. config_stmt: config_entry_start config_option_list
  128. {
  129. menu_end_entry();
  130. printd(DEBUG_PARSE, "%s:%d:endconfig\n", zconf_curname(), zconf_lineno());
  131. };
  132. menuconfig_entry_start: T_MENUCONFIG T_WORD T_EOL
  133. {
  134. struct symbol *sym = sym_lookup($2, 0);
  135. sym->flags |= SYMBOL_OPTIONAL;
  136. menu_add_entry(sym);
  137. printd(DEBUG_PARSE, "%s:%d:menuconfig %s\n", zconf_curname(), zconf_lineno(), $2);
  138. };
  139. menuconfig_stmt: menuconfig_entry_start config_option_list
  140. {
  141. if (current_entry->prompt)
  142. current_entry->prompt->type = P_MENU;
  143. else
  144. zconfprint("warning: menuconfig statement without prompt");
  145. menu_end_entry();
  146. printd(DEBUG_PARSE, "%s:%d:endconfig\n", zconf_curname(), zconf_lineno());
  147. };
  148. config_option_list:
  149. /* empty */
  150. | config_option_list config_option
  151. | config_option_list symbol_option
  152. | config_option_list depends
  153. | config_option_list help
  154. | config_option_list option_error
  155. | config_option_list T_EOL
  156. ;
  157. config_option: T_TYPE prompt_stmt_opt T_EOL
  158. {
  159. menu_set_type($1->stype);
  160. printd(DEBUG_PARSE, "%s:%d:type(%u)\n",
  161. zconf_curname(), zconf_lineno(),
  162. $1->stype);
  163. };
  164. config_option: T_PROMPT prompt if_expr T_EOL
  165. {
  166. menu_add_prompt(P_PROMPT, $2, $3);
  167. printd(DEBUG_PARSE, "%s:%d:prompt\n", zconf_curname(), zconf_lineno());
  168. };
  169. config_option: T_DEFAULT expr if_expr T_EOL
  170. {
  171. menu_add_expr(P_DEFAULT, $2, $3);
  172. if ($1->stype != S_UNKNOWN)
  173. menu_set_type($1->stype);
  174. printd(DEBUG_PARSE, "%s:%d:default(%u)\n",
  175. zconf_curname(), zconf_lineno(),
  176. $1->stype);
  177. };
  178. config_option: T_SELECT T_WORD if_expr T_EOL
  179. {
  180. menu_add_symbol(P_SELECT, sym_lookup($2, 0), $3);
  181. printd(DEBUG_PARSE, "%s:%d:select\n", zconf_curname(), zconf_lineno());
  182. };
  183. config_option: T_RANGE symbol symbol if_expr T_EOL
  184. {
  185. menu_add_expr(P_RANGE, expr_alloc_comp(E_RANGE,$2, $3), $4);
  186. printd(DEBUG_PARSE, "%s:%d:range\n", zconf_curname(), zconf_lineno());
  187. };
  188. symbol_option: T_OPTION symbol_option_list T_EOL
  189. ;
  190. symbol_option_list:
  191. /* empty */
  192. | symbol_option_list T_WORD symbol_option_arg
  193. {
  194. struct kconf_id *id = kconf_id_lookup($2, strlen($2));
  195. if (id && id->flags & TF_OPTION)
  196. menu_add_option(id->token, $3);
  197. else
  198. zconfprint("warning: ignoring unknown option %s", $2);
  199. free($2);
  200. };
  201. symbol_option_arg:
  202. /* empty */ { $$ = NULL; }
  203. | T_EQUAL prompt { $$ = $2; }
  204. ;
  205. /* choice entry */
  206. choice: T_CHOICE T_EOL
  207. {
  208. struct symbol *sym = sym_lookup(NULL, 0);
  209. sym->flags |= SYMBOL_CHOICE;
  210. menu_add_entry(sym);
  211. menu_add_expr(P_CHOICE, NULL, NULL);
  212. printd(DEBUG_PARSE, "%s:%d:choice\n", zconf_curname(), zconf_lineno());
  213. };
  214. choice_entry: choice choice_option_list
  215. {
  216. $$ = menu_add_menu();
  217. };
  218. choice_end: end
  219. {
  220. if (zconf_endtoken($1, T_CHOICE, T_ENDCHOICE)) {
  221. menu_end_menu();
  222. printd(DEBUG_PARSE, "%s:%d:endchoice\n", zconf_curname(), zconf_lineno());
  223. }
  224. };
  225. choice_stmt: choice_entry choice_block choice_end
  226. ;
  227. choice_option_list:
  228. /* empty */
  229. | choice_option_list choice_option
  230. | choice_option_list depends
  231. | choice_option_list help
  232. | choice_option_list T_EOL
  233. | choice_option_list option_error
  234. ;
  235. choice_option: T_PROMPT prompt if_expr T_EOL
  236. {
  237. menu_add_prompt(P_PROMPT, $2, $3);
  238. printd(DEBUG_PARSE, "%s:%d:prompt\n", zconf_curname(), zconf_lineno());
  239. };
  240. choice_option: T_TYPE prompt_stmt_opt T_EOL
  241. {
  242. if ($1->stype == S_BOOLEAN || $1->stype == S_TRISTATE) {
  243. menu_set_type($1->stype);
  244. printd(DEBUG_PARSE, "%s:%d:type(%u)\n",
  245. zconf_curname(), zconf_lineno(),
  246. $1->stype);
  247. } else
  248. YYERROR;
  249. };
  250. choice_option: T_OPTIONAL T_EOL
  251. {
  252. current_entry->sym->flags |= SYMBOL_OPTIONAL;
  253. printd(DEBUG_PARSE, "%s:%d:optional\n", zconf_curname(), zconf_lineno());
  254. };
  255. choice_option: T_DEFAULT T_WORD if_expr T_EOL
  256. {
  257. if ($1->stype == S_UNKNOWN) {
  258. menu_add_symbol(P_DEFAULT, sym_lookup($2, 0), $3);
  259. printd(DEBUG_PARSE, "%s:%d:default\n",
  260. zconf_curname(), zconf_lineno());
  261. } else
  262. YYERROR;
  263. };
  264. choice_block:
  265. /* empty */
  266. | choice_block common_stmt
  267. ;
  268. /* if entry */
  269. if_entry: T_IF expr nl
  270. {
  271. printd(DEBUG_PARSE, "%s:%d:if\n", zconf_curname(), zconf_lineno());
  272. menu_add_entry(NULL);
  273. menu_add_dep($2);
  274. $$ = menu_add_menu();
  275. };
  276. if_end: end
  277. {
  278. if (zconf_endtoken($1, T_IF, T_ENDIF)) {
  279. menu_end_menu();
  280. printd(DEBUG_PARSE, "%s:%d:endif\n", zconf_curname(), zconf_lineno());
  281. }
  282. };
  283. if_stmt: if_entry if_block if_end
  284. ;
  285. if_block:
  286. /* empty */
  287. | if_block common_stmt
  288. | if_block menu_stmt
  289. | if_block choice_stmt
  290. ;
  291. /* menu entry */
  292. menu: T_MENU prompt T_EOL
  293. {
  294. menu_add_entry(NULL);
  295. menu_add_prompt(P_MENU, $2, NULL);
  296. printd(DEBUG_PARSE, "%s:%d:menu\n", zconf_curname(), zconf_lineno());
  297. };
  298. menu_entry: menu depends_list
  299. {
  300. $$ = menu_add_menu();
  301. };
  302. menu_end: end
  303. {
  304. if (zconf_endtoken($1, T_MENU, T_ENDMENU)) {
  305. menu_end_menu();
  306. printd(DEBUG_PARSE, "%s:%d:endmenu\n", zconf_curname(), zconf_lineno());
  307. }
  308. };
  309. menu_stmt: menu_entry menu_block menu_end
  310. ;
  311. menu_block:
  312. /* empty */
  313. | menu_block common_stmt
  314. | menu_block menu_stmt
  315. | menu_block choice_stmt
  316. ;
  317. source_stmt: T_SOURCE prompt T_EOL
  318. {
  319. printd(DEBUG_PARSE, "%s:%d:source %s\n", zconf_curname(), zconf_lineno(), $2);
  320. zconf_nextfile($2);
  321. };
  322. /* comment entry */
  323. comment: T_COMMENT prompt T_EOL
  324. {
  325. menu_add_entry(NULL);
  326. menu_add_prompt(P_COMMENT, $2, NULL);
  327. printd(DEBUG_PARSE, "%s:%d:comment\n", zconf_curname(), zconf_lineno());
  328. };
  329. comment_stmt: comment depends_list
  330. {
  331. menu_end_entry();
  332. };
  333. /* help option */
  334. help_start: T_HELP T_EOL
  335. {
  336. printd(DEBUG_PARSE, "%s:%d:help\n", zconf_curname(), zconf_lineno());
  337. zconf_starthelp();
  338. };
  339. help: help_start T_HELPTEXT
  340. {
  341. current_entry->sym->help = $2;
  342. };
  343. /* depends option */
  344. depends_list:
  345. /* empty */
  346. | depends_list depends
  347. | depends_list T_EOL
  348. | depends_list option_error
  349. ;
  350. depends: T_DEPENDS T_ON expr T_EOL
  351. {
  352. menu_add_dep($3);
  353. printd(DEBUG_PARSE, "%s:%d:depends on\n", zconf_curname(), zconf_lineno());
  354. }
  355. | T_DEPENDS expr T_EOL
  356. {
  357. menu_add_dep($2);
  358. printd(DEBUG_PARSE, "%s:%d:depends\n", zconf_curname(), zconf_lineno());
  359. }
  360. | T_REQUIRES expr T_EOL
  361. {
  362. menu_add_dep($2);
  363. printd(DEBUG_PARSE, "%s:%d:requires\n", zconf_curname(), zconf_lineno());
  364. };
  365. /* prompt statement */
  366. prompt_stmt_opt:
  367. /* empty */
  368. | prompt if_expr
  369. {
  370. menu_add_prompt(P_PROMPT, $1, $2);
  371. };
  372. prompt: T_WORD
  373. | T_WORD_QUOTE
  374. ;
  375. end: T_ENDMENU T_EOL { $$ = $1; }
  376. | T_ENDCHOICE T_EOL { $$ = $1; }
  377. | T_ENDIF T_EOL { $$ = $1; }
  378. ;
  379. nl:
  380. T_EOL
  381. | nl T_EOL
  382. ;
  383. if_expr: /* empty */ { $$ = NULL; }
  384. | T_IF expr { $$ = $2; }
  385. ;
  386. expr: symbol { $$ = expr_alloc_symbol($1); }
  387. | symbol T_EQUAL symbol { $$ = expr_alloc_comp(E_EQUAL, $1, $3); }
  388. | symbol T_UNEQUAL symbol { $$ = expr_alloc_comp(E_UNEQUAL, $1, $3); }
  389. | T_OPEN_PAREN expr T_CLOSE_PAREN { $$ = $2; }
  390. | T_NOT expr { $$ = expr_alloc_one(E_NOT, $2); }
  391. | expr T_OR expr { $$ = expr_alloc_two(E_OR, $1, $3); }
  392. | expr T_AND expr { $$ = expr_alloc_two(E_AND, $1, $3); }
  393. ;
  394. symbol: T_WORD { $$ = sym_lookup($1, 0); free($1); }
  395. | T_WORD_QUOTE { $$ = sym_lookup($1, 1); free($1); }
  396. ;
  397. %%
  398. void conf_parse(const char *name)
  399. {
  400. struct symbol *sym;
  401. int i;
  402. zconf_initscan(name);
  403. sym_init();
  404. menu_init();
  405. modules_sym = sym_lookup(NULL, 0);
  406. modules_sym->type = S_BOOLEAN;
  407. modules_sym->flags |= SYMBOL_AUTO;
  408. rootmenu.prompt = menu_add_prompt(P_MENU, "uClibc Configuration", NULL);
  409. #if YYDEBUG
  410. if (getenv("ZCONF_DEBUG"))
  411. zconfdebug = 1;
  412. #endif
  413. zconfparse();
  414. if (zconfnerrs)
  415. exit(1);
  416. if (!modules_sym->prop) {
  417. struct property *prop;
  418. prop = prop_alloc(P_DEFAULT, modules_sym);
  419. prop->expr = expr_alloc_symbol(sym_lookup("MODULES", 0));
  420. }
  421. menu_finalize(&rootmenu);
  422. for_all_symbols(i, sym) {
  423. sym_check_deps(sym);
  424. }
  425. sym_set_change_count(1);
  426. }
  427. const char *zconf_tokenname(int token)
  428. {
  429. switch (token) {
  430. case T_MENU: return "menu";
  431. case T_ENDMENU: return "endmenu";
  432. case T_CHOICE: return "choice";
  433. case T_ENDCHOICE: return "endchoice";
  434. case T_IF: return "if";
  435. case T_ENDIF: return "endif";
  436. case T_DEPENDS: return "depends";
  437. }
  438. return "<token>";
  439. }
  440. static bool zconf_endtoken(struct kconf_id *id, int starttoken, int endtoken)
  441. {
  442. if (id->token != endtoken) {
  443. zconf_error("unexpected '%s' within %s block",
  444. kconf_id_strings + id->name, zconf_tokenname(starttoken));
  445. zconfnerrs++;
  446. return false;
  447. }
  448. if (current_menu->file != current_file) {
  449. zconf_error("'%s' in different file than '%s'",
  450. kconf_id_strings + id->name, zconf_tokenname(starttoken));
  451. fprintf(stderr, "%s:%d: location of the '%s'\n",
  452. current_menu->file->name, current_menu->lineno,
  453. zconf_tokenname(starttoken));
  454. zconfnerrs++;
  455. return false;
  456. }
  457. return true;
  458. }
  459. static void zconfprint(const char *err, ...)
  460. {
  461. va_list ap;
  462. fprintf(stderr, "%s:%d: ", zconf_curname(), zconf_lineno());
  463. va_start(ap, err);
  464. vfprintf(stderr, err, ap);
  465. va_end(ap);
  466. fprintf(stderr, "\n");
  467. }
  468. static void zconf_error(const char *err, ...)
  469. {
  470. va_list ap;
  471. zconfnerrs++;
  472. fprintf(stderr, "%s:%d: ", zconf_curname(), zconf_lineno());
  473. va_start(ap, err);
  474. vfprintf(stderr, err, ap);
  475. va_end(ap);
  476. fprintf(stderr, "\n");
  477. }
  478. static void zconferror(const char *err)
  479. {
  480. #if YYDEBUG
  481. fprintf(stderr, "%s:%d: %s\n", zconf_curname(), zconf_lineno() + 1, err);
  482. #endif
  483. }
  484. void print_quoted_string(FILE *out, const char *str)
  485. {
  486. const char *p;
  487. int len;
  488. putc('"', out);
  489. while ((p = strchr(str, '"'))) {
  490. len = p - str;
  491. if (len)
  492. fprintf(out, "%.*s", len, str);
  493. fputs("\\\"", out);
  494. str = p + 1;
  495. }
  496. fputs(str, out);
  497. putc('"', out);
  498. }
  499. void print_symbol(FILE *out, struct menu *menu)
  500. {
  501. struct symbol *sym = menu->sym;
  502. struct property *prop;
  503. if (sym_is_choice(sym))
  504. fprintf(out, "choice\n");
  505. else
  506. fprintf(out, "config %s\n", sym->name);
  507. switch (sym->type) {
  508. case S_BOOLEAN:
  509. fputs(" boolean\n", out);
  510. break;
  511. case S_TRISTATE:
  512. fputs(" tristate\n", out);
  513. break;
  514. case S_STRING:
  515. fputs(" string\n", out);
  516. break;
  517. case S_INT:
  518. fputs(" integer\n", out);
  519. break;
  520. case S_HEX:
  521. fputs(" hex\n", out);
  522. break;
  523. default:
  524. fputs(" ???\n", out);
  525. break;
  526. }
  527. for (prop = sym->prop; prop; prop = prop->next) {
  528. if (prop->menu != menu)
  529. continue;
  530. switch (prop->type) {
  531. case P_PROMPT:
  532. fputs(" prompt ", out);
  533. print_quoted_string(out, prop->text);
  534. if (!expr_is_yes(prop->visible.expr)) {
  535. fputs(" if ", out);
  536. expr_fprint(prop->visible.expr, out);
  537. }
  538. fputc('\n', out);
  539. break;
  540. case P_DEFAULT:
  541. fputs( " default ", out);
  542. expr_fprint(prop->expr, out);
  543. if (!expr_is_yes(prop->visible.expr)) {
  544. fputs(" if ", out);
  545. expr_fprint(prop->visible.expr, out);
  546. }
  547. fputc('\n', out);
  548. break;
  549. case P_CHOICE:
  550. fputs(" #choice value\n", out);
  551. break;
  552. default:
  553. fprintf(out, " unknown prop %d!\n", prop->type);
  554. break;
  555. }
  556. }
  557. if (sym->help) {
  558. int len = strlen(sym->help);
  559. while (sym->help[--len] == '\n')
  560. sym->help[len] = 0;
  561. fprintf(out, " help\n%s\n", sym->help);
  562. }
  563. fputc('\n', out);
  564. }
  565. void zconfdump(FILE *out)
  566. {
  567. struct property *prop;
  568. struct symbol *sym;
  569. struct menu *menu;
  570. menu = rootmenu.list;
  571. while (menu) {
  572. if ((sym = menu->sym))
  573. print_symbol(out, menu);
  574. else if ((prop = menu->prompt)) {
  575. switch (prop->type) {
  576. case P_COMMENT:
  577. fputs("\ncomment ", out);
  578. print_quoted_string(out, prop->text);
  579. fputs("\n", out);
  580. break;
  581. case P_MENU:
  582. fputs("\nmenu ", out);
  583. print_quoted_string(out, prop->text);
  584. fputs("\n", out);
  585. break;
  586. default:
  587. ;
  588. }
  589. if (!expr_is_yes(prop->visible.expr)) {
  590. fputs(" depends ", out);
  591. expr_fprint(prop->visible.expr, out);
  592. fputc('\n', out);
  593. }
  594. fputs("\n", out);
  595. }
  596. if (menu->list)
  597. menu = menu->list;
  598. else if (menu->next)
  599. menu = menu->next;
  600. else while ((menu = menu->parent)) {
  601. if (menu->prompt && menu->prompt->type == P_MENU)
  602. fputs("\nendmenu\n", out);
  603. if (menu->next) {
  604. menu = menu->next;
  605. break;
  606. }
  607. }
  608. }
  609. }
  610. #include "lex.zconf.c"
  611. #include "util.c"
  612. #include "confdata.c"
  613. #include "expr.c"
  614. #include "symbol.c"
  615. #include "menu.c"