diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2022-09-16 15:14:05 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2022-09-21 11:44:09 +0900 |
commit | 45741918e1963fce3416b253712cfd4745368e7f (patch) | |
tree | 8c1563e91df0c162f0f811f9b1d985ed3c91617d /ext | |
parent | 77c61ae3ab51746c986ff853c85b5e05bc6a942b (diff) |
reserved_word: just use gperf 3.1 declaration
The reason why this was commented out was because of gperf 3.0 vs 3.1
differences (see [Feature #13883]). Five years passed, I am pretty
confident that we can drop support of old versions here.
Ditto for uniname2ctype_p(), onig_jis_property(), and zonetab().
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6358
Diffstat (limited to 'ext')
-rw-r--r-- | ext/date/zonetab.h | 2 | ||||
-rw-r--r-- | ext/date/zonetab.list | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/zonetab.h b/ext/date/zonetab.h index 39a435db16..7ced9e0308 100644 --- a/ext/date/zonetab.h +++ b/ext/date/zonetab.h @@ -36,7 +36,7 @@ struct zone { int name; int offset; }; -static const struct zone *zonetab(); +static const struct zone *zonetab(register const char *str, register size_t len); #line 9 "zonetab.list" struct zone; diff --git a/ext/date/zonetab.list b/ext/date/zonetab.list index d2f902d2d5..748aec1d8a 100644 --- a/ext/date/zonetab.list +++ b/ext/date/zonetab.list @@ -3,7 +3,7 @@ struct zone { int name; int offset; }; -static const struct zone *zonetab(); +static const struct zone *zonetab(register const char *str, register size_t len); %} struct zone; |