Expose rb_int_parse_cstr() as public API#16322
Conversation
Move rb_int_parse_cstr() declaration and RB_INT_PARSE_* flags from internal/bignum.h to the public header include/ruby/internal/intern/bignum.h so that C extensions can use this function without writing their own prototype declarations. The flags are changed from an enum to #define macros to follow the convention used in the public header for similar constants.
|
Due to a change in the specification of |
|
I can't see that comment. What is that change? And |
I'm sorry if it's hard to understand.
I just wanted to convey that it follows the same specifications as
|
|
@nobu |
Move
rb_int_parse_cstr()declaration andRB_INT_PARSE_*flags from internal/bignum.h to the public header include/ruby/internal/intern/bignum.h so that C extensions can use this function without writing their own prototype declarations.The flags are changed from an enum to #define macros to follow the convention used in the public header for similar constants.
see: ruby/strscan#192