mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
bb2b7667c3
Replace designated initializer lookup tables with switch statement functions for C++ compatibility. This approach is cleaner and works perfectly in both C and C++ modes. - char_to_bit array -> char_to_bit() function - char_class array -> char_class() function - format_table array -> get_format_info() function Co-authored-by: Claude <noreply@anthropic.com>