1#ifndef INTERNAL_SYMBOL_H
2#define INTERNAL_SYMBOL_H
13#include "internal/compilers.h"
15#ifdef rb_sym_intern_ascii_cstr
16# undef rb_sym_intern_ascii_cstr
22VALUE rb_sym_intern_ascii(
const char *ptr,
long len);
23VALUE rb_sym_intern_ascii_cstr(
const char *ptr);
24int rb_is_const_name(
VALUE name);
25int rb_is_class_name(
VALUE name);
26int rb_is_instance_name(
VALUE name);
27int rb_is_local_name(
VALUE name);
28PUREFUNC(
int rb_is_const_sym(
VALUE sym));
29PUREFUNC(
int rb_is_attrset_sym(
VALUE sym));
30ID rb_make_internal_id(
void);
31ID rb_make_temporary_id(
size_t n);
32void rb_gc_free_dsymbol(
VALUE);
33int rb_static_id_valid_p(
ID id);
36void rb_free_static_symid_str(
void);
38#if __has_builtin(__builtin_constant_p)
39#define rb_sym_intern_ascii_cstr(ptr) \
40 (__builtin_constant_p(ptr) ? \
41 rb_sym_intern_ascii((ptr), (long)strlen(ptr)) : \
42 rb_sym_intern_ascii_cstr(ptr))
int len
Length of the buffer.
uintptr_t ID
Type that represents a Ruby identifier such as a variable name.
uintptr_t VALUE
Type that represents a Ruby object.