diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-05-24 17:23:23 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-05-24 17:23:42 +0900 |
commit | 78785fb99041521fc5da01ffa6ab3f4f3936ce06 (patch) | |
tree | ceb323333684fffbca38b619f6b1868407c79623 /tool/gperf.sed | |
parent | 62e08d4b844a3f4f7a6dadc6083cd0585485931b (diff) | |
download | ruby-78785fb99041521fc5da01ffa6ab3f4f3936ce06.tar.gz |
[ruby/date] Constify gperf-generated table
https://github.com/ruby/date/commit/6d7ab08ffc
Diffstat (limited to 'tool/gperf.sed')
-rw-r--r-- | tool/gperf.sed | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/gperf.sed b/tool/gperf.sed index 6b3e1980be..52915f80d5 100644 --- a/tool/gperf.sed +++ b/tool/gperf.sed @@ -20,3 +20,4 @@ s/(int)([a-z_]*)&((struct \([a-zA-Z_0-9][a-zA-Z_0-9]*\)_t *\*)0)->\1_str\([1-9][ s/ hval = / hval = (unsigned int)/ s/ return / return (unsigned int)/ } +s/^\(static\) \(unsigned char gperf_downcase\)/\1 const \2/ |