diff options
author | Michal Marek <mmarek@suse.cz> | 2011-02-15 09:11:36 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2011-03-17 10:13:55 -0400 |
commit | 01762c4ec5f6f62c550304b9c70e824293cefdd0 (patch) | |
tree | 4a457cec48321f5b591966e56ddaea33733df5cc /scripts/genksyms/lex.c_shipped | |
parent | 68eb8563a1adf27fae18dde4c95fb796c17563df (diff) |
genksyms: simplify usage of find_symbol()
Allow searching for symbols of an exact type. The lexer does this and a
subsequent patch will add one more usage.
Signed-off-by: Michal Marek <mmarek@suse.cz>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/genksyms/lex.c_shipped')
-rw-r--r-- | scripts/genksyms/lex.c_shipped | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/genksyms/lex.c_shipped b/scripts/genksyms/lex.c_shipped index d0a0423361fd..f231c0810c60 100644 --- a/scripts/genksyms/lex.c_shipped +++ b/scripts/genksyms/lex.c_shipped | |||
@@ -2347,8 +2347,7 @@ repeat: | |||
2347 | } | 2347 | } |
2348 | if (!suppress_type_lookup) | 2348 | if (!suppress_type_lookup) |
2349 | { | 2349 | { |
2350 | struct symbol *sym = find_symbol(yytext, SYM_TYPEDEF); | 2350 | if (find_symbol(yytext, SYM_TYPEDEF, 1)) |
2351 | if (sym && sym->type == SYM_TYPEDEF) | ||
2352 | token = TYPE; | 2351 | token = TYPE; |
2353 | } | 2352 | } |
2354 | } | 2353 | } |