use gperf -L ANSI-C to generate lex.def

This commit is contained in:
Yukihiro Matsumoto
2012-05-17 08:39:27 +09:00
parent 3bbd82c240
commit cbeee91ddb
+5 -9
View File
@@ -1,5 +1,5 @@
/* C code produced by gperf version 3.0.3 */
/* Command-line: gperf -C -p -j1 -i 1 -g -o -t -N mrb_reserved_word -k'1,3,$' keywords */
/* ANSI-C code produced by gperf version 3.0.3 */
/* Command-line: gperf -L ANSI-C -C -p -j1 -i 1 -g -o -t -N mrb_reserved_word -k'1,3,$' keywords */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
@@ -25,7 +25,7 @@
&& ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
&& ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
/* The character set is not based on ISO-646. */
error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
#endif
#line 1 "keywords"
@@ -52,9 +52,7 @@ inline
#endif
#endif
static unsigned int
hash (str, len)
register const char *str;
register unsigned int len;
hash (register const char *str, register unsigned int len)
{
static const unsigned char asso_values[] =
{
@@ -107,9 +105,7 @@ __attribute__ ((__gnu_inline__))
#endif
#endif
const struct kwtable *
mrb_reserved_word (str, len)
register const char *str;
register unsigned int len;
mrb_reserved_word (register const char *str, register unsigned int len)
{
static const struct kwtable wordlist[] =
{