aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/genksyms
diff options
context:
space:
mode:
authorArnaud Lacombe <lacombar@gmail.com>2011-05-04 21:18:27 -0400
committerArnaud Lacombe <lacombar@gmail.com>2011-06-09 14:04:40 -0400
commit45c47d966850e2727f913c92e4b6d1c2d586d6bd (patch)
tree9b5c14bff2b6b2467b0db9deee333ea3fbada23b /scripts/genksyms
parent991d76c950f6c5323c37c33dcebf6b8aec009ff0 (diff)
downloadkernel_goldelico_gta04-45c47d966850e2727f913c92e4b6d1c2d586d6bd.zip
kernel_goldelico_gta04-45c47d966850e2727f913c92e4b6d1c2d586d6bd.tar.gz
kernel_goldelico_gta04-45c47d966850e2727f913c92e4b6d1c2d586d6bd.tar.bz2
genksyms: pass hash and lookup functions name and target language though 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 <lacombar@gmail.com>
Diffstat (limited to 'scripts/genksyms')
-rw-r--r--scripts/genksyms/keywords.gperf3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/genksyms/keywords.gperf b/scripts/genksyms/keywords.gperf
index e6349ac..3e77a94 100644
--- a/scripts/genksyms/keywords.gperf
+++ b/scripts/genksyms/keywords.gperf
@@ -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);