genksyms: pass hash and lookup functions name and target language though the input...
authorArnaud Lacombe <lacombar@gmail.com>
Thu, 5 May 2011 01:18:27 +0000 (21:18 -0400)
committerArnaud Lacombe <lacombar@gmail.com>
Thu, 9 Jun 2011 18:04:40 +0000 (14:04 -0400)
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 <lacombar@gmail.com>

scripts/genksyms/keywords.gperf

index e6349ac..3e77a94 100644 (file)
@@ -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);