diff options
Diffstat (limited to 'include/ruby/impl/symbol.h')
-rw-r--r-- | include/ruby/impl/symbol.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/ruby/impl/symbol.h b/include/ruby/impl/symbol.h index 911015a3c2..dda73759ea 100644 --- a/include/ruby/impl/symbol.h +++ b/include/ruby/impl/symbol.h @@ -1,5 +1,5 @@ -#ifndef RUBY3_SYMBOL_H /*-*-C++-*-vi:se ft=cpp:*/ -#define RUBY3_SYMBOL_H +#ifndef RBIMPL_SYMBOL_H /*-*-C++-*-vi:se ft=cpp:*/ +#define RBIMPL_SYMBOL_H /** * @file * @author Ruby developers <[email protected]> @@ -7,7 +7,7 @@ * Permission is hereby granted, to either redistribute and/or * modify this file, provided that the conditions mentioned in the * file COPYING are met. Consult the file for details. - * @warning Symbols prefixed with either `RUBY3` or `ruby3` are + * @warning Symbols prefixed with either `RBIMPL` or `ruby3` are * implementation details. Don't take them as canon. They could * rapidly appear then vanish. The name (path) of this header file * is also an implementation detail. Do not expect it to persist @@ -50,7 +50,7 @@ #define rb_intern_const rb_intern_const /** @endcond */ -RUBY3_SYMBOL_EXPORT_BEGIN() +RBIMPL_SYMBOL_EXPORT_BEGIN() ID rb_sym2id(VALUE); VALUE rb_id2sym(ID); ID rb_intern(const char*); @@ -63,19 +63,19 @@ VALUE rb_id2str(ID); VALUE rb_sym2str(VALUE); VALUE rb_to_symbol(VALUE name); VALUE rb_check_symbol(volatile VALUE *namep); -RUBY3_SYMBOL_EXPORT_END() +RBIMPL_SYMBOL_EXPORT_END() -RUBY3_ATTR_PURE() -RUBY3_ATTR_NONNULL(()) +RBIMPL_ATTR_PURE() +RBIMPL_ATTR_NONNULL(()) static inline ID rb_intern_const(const char *str) { size_t len = strlen(str); - return rb_intern2(str, RUBY3_CAST((long)len)); + return rb_intern2(str, RBIMPL_CAST((long)len)); } -RUBY3_ATTR_NOALIAS() -RUBY3_ATTR_NONNULL(()) +RBIMPL_ATTR_NOALIAS() +RBIMPL_ATTR_NONNULL(()) static inline ID ruby3_intern_const(ID *ptr, const char *str) { @@ -103,7 +103,7 @@ ruby3_intern_const(ID *ptr, const char *str) /* __builtin_constant_p and statement expression is available * since gcc-2.7.2.3 at least. */ #define rb_intern(str) \ - (RUBY3_CONSTANT_P(str) ? \ + (RBIMPL_CONSTANT_P(str) ? \ __extension__ ({ \ static ID ruby3_id; \ ruby3_intern_const(&ruby3_id, (str)); \ @@ -111,4 +111,4 @@ ruby3_intern_const(ID *ptr, const char *str) (rb_intern)(str)) #endif -#endif /* RUBY3_SYMBOL_H */ +#endif /* RBIMPL_SYMBOL_H */ |