diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-17 08:39:27 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-17 08:39:27 +0900 |
| commit | cbeee91ddb833caa9bf9b726024ba997cb617d87 (patch) | |
| tree | 60a1ba15976a10804e169020f0cba4c12c280cc2 /src | |
| parent | 3bbd82c2400d07c27a9959b959759657a8022f6d (diff) | |
| download | mruby-cbeee91ddb833caa9bf9b726024ba997cb617d87.tar.gz mruby-cbeee91ddb833caa9bf9b726024ba997cb617d87.zip | |
use gperf -L ANSI-C to generate lex.def
Diffstat (limited to 'src')
| -rw-r--r-- | src/lex.def | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/lex.def b/src/lex.def index 9e3938b6a..db05adb9b 100644 --- a/src/lex.def +++ b/src/lex.def @@ -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 <[email protected]>." +#error "gperf generated tables don't work with this execution character set. Please report a bug to <[email protected]>." #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[] = { |
