diff options
Diffstat (limited to 'enc/jis')
| -rw-r--r-- | enc/jis/props.h.blt | 17 | ||||
| -rw-r--r-- | enc/jis/props.kwd | 2 | ||||
| -rw-r--r-- | enc/jis/props.src | 2 |
3 files changed, 10 insertions, 11 deletions
diff --git a/enc/jis/props.h.blt b/enc/jis/props.h.blt index 54aa94f8bc..865ae6b651 100644 --- a/enc/jis/props.h.blt +++ b/enc/jis/props.h.blt @@ -1,5 +1,5 @@ /* ANSI-C code produced by gperf version 3.1 */ -/* Command-line: gperf -k1,3 -7 -c -j1 -i1 -t -C -P -t --ignore-case -H onig_jis_property_hash -Q onig_jis_property_pool -N onig_jis_property enc/jis/props.kwd */ +/* Command-line: gperf -L ANSI-C -k1,3 -7 -c -j1 -i1 -t -C -P -t --ignore-case -H onig_jis_property_hash -Q onig_jis_property_pool -N onig_jis_property enc/jis/props.kwd */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ @@ -28,7 +28,6 @@ #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>." #endif -#define gperf_offsetof(s, n) (short)offsetof(struct s##_t, s##_str##n) #line 1 "enc/jis/props.kwd" /* -*- c -*- */ #define GPERF_DOWNCASE 1 @@ -69,7 +68,7 @@ struct enc_property { unsigned char ctype; }; -static const struct enc_property *onig_jis_property(/*const char *str, unsigned int len*/); +static const struct enc_property *onig_jis_property(register const char *str, register size_t len); #line 43 "enc/jis/props.kwd" struct enc_property; @@ -180,19 +179,19 @@ onig_jis_property (register const char *str, register size_t len) { {-1}, {-1}, {-1}, {-1}, {-1}, #line 48 "enc/jis/props.kwd" - {gperf_offsetof(onig_jis_property_pool, 5), onigenc_jis_han}, + {(int)(size_t)&((struct onig_jis_property_pool_t *)0)->onig_jis_property_pool_str5, onigenc_jis_han}, {-1}, #line 49 "enc/jis/props.kwd" - {gperf_offsetof(onig_jis_property_pool, 7), onigenc_jis_latin}, + {(int)(size_t)&((struct onig_jis_property_pool_t *)0)->onig_jis_property_pool_str7, onigenc_jis_latin}, #line 50 "enc/jis/props.kwd" - {gperf_offsetof(onig_jis_property_pool, 8), onigenc_jis_greek}, + {(int)(size_t)&((struct onig_jis_property_pool_t *)0)->onig_jis_property_pool_str8, onigenc_jis_greek}, {-1}, #line 46 "enc/jis/props.kwd" - {gperf_offsetof(onig_jis_property_pool, 10), onigenc_jis_hiragana}, + {(int)(size_t)&((struct onig_jis_property_pool_t *)0)->onig_jis_property_pool_str10, onigenc_jis_hiragana}, #line 47 "enc/jis/props.kwd" - {gperf_offsetof(onig_jis_property_pool, 11), onigenc_jis_katakana}, + {(int)(size_t)&((struct onig_jis_property_pool_t *)0)->onig_jis_property_pool_str11, onigenc_jis_katakana}, #line 51 "enc/jis/props.kwd" - {gperf_offsetof(onig_jis_property_pool, 12), onigenc_jis_cyrillic} + {(int)(size_t)&((struct onig_jis_property_pool_t *)0)->onig_jis_property_pool_str12, onigenc_jis_cyrillic} }; if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) diff --git a/enc/jis/props.kwd b/enc/jis/props.kwd index 659cf0aff4..9606828459 100644 --- a/enc/jis/props.kwd +++ b/enc/jis/props.kwd @@ -37,7 +37,7 @@ struct enc_property { unsigned char ctype; }; -static const struct enc_property *onig_jis_property(/*!ANSI{*/const char *str, unsigned int len/*}!ANSI*/); +static const struct enc_property *onig_jis_property(register const char *str, register size_t len); %} struct enc_property; diff --git a/enc/jis/props.src b/enc/jis/props.src index 659cf0aff4..9606828459 100644 --- a/enc/jis/props.src +++ b/enc/jis/props.src @@ -37,7 +37,7 @@ struct enc_property { unsigned char ctype; }; -static const struct enc_property *onig_jis_property(/*!ANSI{*/const char *str, unsigned int len/*}!ANSI*/); +static const struct enc_property *onig_jis_property(register const char *str, register size_t len); %} struct enc_property; |
