浏览代码

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>
Arnaud Lacombe 14 年之前
父节点
当前提交
45c47d9668
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      scripts/genksyms/keywords.gperf

+ 3 - 0
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);