summaryrefslogtreecommitdiff
path: root/tool/enc-unicode.rb
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2022-09-16 15:14:05 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2022-09-21 11:44:09 +0900
commit45741918e1963fce3416b253712cfd4745368e7f (patch)
tree8c1563e91df0c162f0f811f9b1d985ed3c91617d /tool/enc-unicode.rb
parent77c61ae3ab51746c986ff853c85b5e05bc6a942b (diff)
downloadruby-45741918e1963fce3416b253712cfd4745368e7f.tar.gz
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().
Diffstat (limited to 'tool/enc-unicode.rb')
-rwxr-xr-xtool/enc-unicode.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/tool/enc-unicode.rb b/tool/enc-unicode.rb
index 60d3fca753..6f2576cc37 100755
--- a/tool/enc-unicode.rb
+++ b/tool/enc-unicode.rb
@@ -465,11 +465,7 @@ struct uniname2ctype_struct {
};
#define uniname2ctype_offset(str) offsetof(struct uniname2ctype_pool_t, uniname2ctype_pool_##str)
-static const struct uniname2ctype_struct *uniname2ctype_p(
-#if !(/*ANSI*/+0) /* if ANSI, old style not to conflict with generated prototype */
- const char *, unsigned int
-#endif
-);
+static const struct uniname2ctype_struct *uniname2ctype_p(register const char *str, register size_t len);
%}
struct uniname2ctype_struct;
%%