Fix C source compilation with `MRB_USE_ALL_SYMBOLS`; ref
However, compiling by `mrbc` fails with another issue
MODIFY
doc/guides/mrbconf.md
doc/guides/mrbconf.md
@@ -168,5 +168,5 @@ largest value of required alignment.
* Define this macro on machines that use higher bits of pointers
`MRB_USE_ALL_SYMBOLS`
-* Make it available `Symbols.all_symbols` in `mrbgems/mruby-symbol-ext`
+* Make it available `Symbol.all_symbols` in `mrbgems/mruby-symbol-ext`
* Increase heap memory usage.

MODIFY
src/symbol.c
src/symbol.c
@@ -324,7 +324,11 @@ sym2name_len(mrb_state *mrb, mrb_sym sym, char *buf, mrb_int *lenp)
MRB_API const char*
mrb_sym_name_len(mrb_state *mrb, mrb_sym sym, mrb_int *lenp)
{
+#ifdef MRB_USE_ALL_SYMBOLS
+ return sym2name_len(mrb, sym, NULL, lenp);
+#else
return sym2name_len(mrb, sym, mrb->symbuf, lenp);
+#endif
}
mrb_bool

Fix C source compilation with `MRB_USE_ALL_SYMBOLS`; ref #5187

However, compiling by `mrbc` fails with another issue (#5116).