Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258903
b: refs/heads/master
c: 61f956f
h: refs/heads/master
i:
  258901: 3e4648e
  258899: f28aa90
  258895: 7e16e04
v: v3
  • Loading branch information
Arnaud Lacombe committed Jun 9, 2011
1 parent f6b93ad commit c35cfdb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58ef81c5cf147f35dfa248cffdfc60a415783690
refs/heads/master: 61f956f576031bea270ea54b10411ebb1e172b1b
2 changes: 1 addition & 1 deletion trunk/scripts/kconfig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ lex.%.c: %.l
cp $@ $@_shipped

%.hash.c: %.gperf
gperf < $< > $@
gperf -C < $< > $@
cp $@ $@_shipped

endif
2 changes: 1 addition & 1 deletion trunk/scripts/kconfig/zconf.gperf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

struct kconf_id;

static struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);
static const struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);

%%
mainmenu, T_MAINMENU, TF_COMMAND
Expand Down
4 changes: 2 additions & 2 deletions trunk/scripts/kconfig/zconf.l
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ n [A-Za-z0-9_]

<COMMAND>{
{n}+ {
struct kconf_id *id = kconf_id_lookup(yytext, yyleng);
const struct kconf_id *id = kconf_id_lookup(yytext, yyleng);
BEGIN(PARAM);
current_pos.file = current_file;
current_pos.lineno = current_file->lineno;
Expand Down Expand Up @@ -132,7 +132,7 @@ n [A-Za-z0-9_]
\n BEGIN(INITIAL); current_file->lineno++; return T_EOL;
--- /* ignore */
({n}|[-/.])+ {
struct kconf_id *id = kconf_id_lookup(yytext, yyleng);
const struct kconf_id *id = kconf_id_lookup(yytext, yyleng);
if (id && id->flags & TF_PARAM) {
zconflval.id = id;
return id->token;
Expand Down
8 changes: 4 additions & 4 deletions trunk/scripts/kconfig/zconf.y
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern int zconflex(void);
static void zconfprint(const char *err, ...);
static void zconf_error(const char *err, ...);
static void zconferror(const char *err);
static bool zconf_endtoken(struct kconf_id *id, int starttoken, int endtoken);
static bool zconf_endtoken(const struct kconf_id *id, int starttoken, int endtoken);

struct symbol *symbol_hash[SYMBOL_HASHSIZE];

Expand All @@ -45,7 +45,7 @@ static struct menu *current_menu, *current_entry;
struct symbol *symbol;
struct expr *expr;
struct menu *menu;
struct kconf_id *id;
const struct kconf_id *id;
}

%token <id>T_MAINMENU
Expand Down Expand Up @@ -229,7 +229,7 @@ symbol_option_list:
/* empty */
| symbol_option_list T_WORD symbol_option_arg
{
struct kconf_id *id = kconf_id_lookup($2, strlen($2));
const struct kconf_id *id = kconf_id_lookup($2, strlen($2));
if (id && id->flags & TF_OPTION)
menu_add_option(id->token, $3);
else
Expand Down Expand Up @@ -545,7 +545,7 @@ static const char *zconf_tokenname(int token)
return "<token>";
}

static bool zconf_endtoken(struct kconf_id *id, int starttoken, int endtoken)
static bool zconf_endtoken(const struct kconf_id *id, int starttoken, int endtoken)
{
if (id->token != endtoken) {
zconf_error("unexpected '%s' within %s block",
Expand Down

0 comments on commit c35cfdb

Please sign in to comment.