ruby/ext/json
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
..
fbuffer [ruby/json] Replace fbuffer by stack buffers or RB_ALLOCV in parser.c 2025-01-20 16:09:00 +09:00
generator Introduce JSON::Coder 2025-01-28 15:41:47 +09:00
lib [ruby/json] Few doc tweaks: 2025-01-30 16:56:02 +09:00
parser [ruby/json] Avoid plain char for ctype macros 2025-01-30 16:56:02 +09:00
depend Added depend files 2019-07-14 01:31:29 +09:00
extconf.rb Restore ext/json/extconf.rb 2024-10-26 18:44:15 +09:00
json.gemspec [ruby/json] Few doc tweaks: 2025-01-30 16:56:02 +09:00