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 e6349acb6f2f36994071acd1c30889f1e4a2d583..3e77a943e7b7c08af456f067a3053f21e5579883 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);