diff options
Diffstat (limited to 'symbol.h')
-rw-r--r-- | symbol.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -100,7 +100,12 @@ sym_type(VALUE sym) #define is_class_sym(sym) (sym_type(sym)==ID_CLASS) #define is_junk_sym(sym) (sym_type(sym)==ID_JUNK) -RUBY_FUNC_EXPORTED const unsigned int ruby_global_name_punct_bits[(0x7e - 0x20 + 31) / 32]; +#ifndef RIPPER +RUBY_FUNC_EXPORTED +#else +RUBY_EXTERN +#endif +const uint_least32_t ruby_global_name_punct_bits[(0x7e - 0x20 + 31) / 32]; static inline int is_global_name_punct(const int c) @@ -109,10 +114,9 @@ is_global_name_punct(const int c) return (ruby_global_name_punct_bits[(c - 0x20) / 32] >> (c % 32)) & 1; } -int rb_enc_symname_type(const char *name, long len, rb_encoding *enc, unsigned int allowed_attrset); - RUBY_SYMBOL_EXPORT_BEGIN +int rb_enc_symname_type(const char *name, long len, rb_encoding *enc, unsigned int allowed_attrset); size_t rb_sym_immortal_count(void); RUBY_SYMBOL_EXPORT_END |