[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 коммит произвёл git
Родитель 25c2aa0a1c
Коммит f4f8aa0f89
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

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

Просмотреть файл

@ -519,7 +519,7 @@ struct vktable;
#ifndef GPERF_DOWNCASE
#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,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,