ruby/ext/json/parser
Nobuyoshi Nakada dc3d2a3c2f
[ruby/json] Avoid plain char for ctype macros
On some platforms ctype functions are defined as macros accesing tables.
A plain char may be `signed` or `unsigned` per implementations and the
extension result implementation dependent.

gcc warns such case:

```
parser.c: In function 'rstring_cache_fetch':
parser.c:138:33: warning: array subscript has type 'char' [-Wchar-subscripts]
  138 |     if (RB_UNLIKELY(!isalpha(str[0]))) {
      |                              ~~~^~~
parser.c: In function 'rsymbol_cache_fetch':
parser.c:190:33: warning: array subscript has type 'char' [-Wchar-subscripts]
  190 |     if (RB_UNLIKELY(!isalpha(str[0]))) {
      |                              ~~~^~~
```

4431b362f6
2025-01-30 16:56:02 +09:00
..
depend Removed parser.rl from ext/json/parser/depend 2025-01-20 16:09:00 +09:00
extconf.rb [ruby/json] Add support for Solaris 10 which lacks strnlen() 2024-12-19 08:45:31 +09:00
parser.c [ruby/json] Avoid plain char for ctype macros 2025-01-30 16:56:02 +09:00