[ruby/io-console] Use strcasecmp

https://github.com/ruby/io-console/commit/f8ec8a0617
This commit is contained in:
Nobuyoshi Nakada 2024-06-21 18:21:07 +09:00 committed by git
parent 25c2aa0a1c
commit f4f8aa0f89
2 changed files with 4 additions and 1 deletions

View File

@ -1071,6 +1071,9 @@ console_scroll(VALUE io, int line)
return io; return io;
} }
#define GPERF_DOWNCASE 1
#define GPERF_CASE_STRCMP 1
#define gperf_case_strcmp strcasecmp
#include "win32_vk.inc" #include "win32_vk.inc"
/* /*

View File

@ -519,7 +519,7 @@ struct vktable;
#ifndef GPERF_DOWNCASE #ifndef GPERF_DOWNCASE
#define GPERF_DOWNCASE 1 #define GPERF_DOWNCASE 1
static const unsigned char gperf_downcase[256] = static unsigned char gperf_downcase[256] =
{ {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,