2 #############################################
4 #############################################
30 const struct kconf_id *id = kconf_id_lookup(yytext, yyleng);
32 current_pos.file = current_file;
33 current_pos.lineno = yylineno;
34 if (id && id->flags & TF_COMMAND) {
38 alloc_string(yytext, yyleng);
42 . warn_ignored_character(*yytext);
52 "(" return T_OPEN_PAREN;
53 ")" return T_CLOSE_PAREN;
56 "!=" return T_UNEQUAL;
57 "<=" return T_LESS_EQUAL;
58 ">=" return T_GREATER_EQUAL;
66 \n BEGIN(INITIAL); return T_EOL;
68 const struct kconf_id *id = kconf_id_lookup(yytext, yyleng);
69 if (id && id->flags & TF_PARAM) {
73 alloc_string(yytext, yyleng);
80 . warn_ignored_character(*yytext);
88 append_string(yytext, yyleng);
93 append_string(yytext, yyleng);
96 append_string(yytext + 1, yyleng - 1);
101 append_string(yytext + 1, yyleng - 1);
104 if (str == yytext[0]) {
106 yylval.string = text;
109 append_string(yytext, 1);
113 "%s:%d:warning: multi-line strings not supported\n",
114 zconf_curname(), zconf_lineno());
126 for (i = 0; i < yyleng; i++) {
127 if (yytext[i] == '\t')
140 append_string(" ", 8);
143 append_string(" ", ts);
151 append_string("\n", 1);
155 if ((yytext[yyleng-1] != ' ') && (yytext[yyleng-1] != '\t'))
159 append_string(yytext, yyleng);