Skip to content

Commit

Permalink
genksyms: pass hash and lookup functions name and target language tho…
Browse files Browse the repository at this point in the history
…ugh the input file

Renaming hash and lookup functions on the command line would reduces its
genericity. Use the .gperf file to pass this information. Do the same for the
target language.

Signed-off-by: Arnaud Lacombe <[email protected]>
  • Loading branch information
lacombar committed Jun 9, 2011
1 parent 991d76c commit 45c47d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/genksyms/keywords.gperf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
%language=ANSI-C
%define hash-function-name is_reserved_hash
%define lookup-function-name is_reserved_word
%{
struct resword;
static const struct resword *is_reserved_word(register const char *str, register unsigned int len);
Expand Down

0 comments on commit 45c47d9

Please sign in to comment.