Ruby  3.4.0dev (2024-11-05 revision e440268d51fe02b303e3817a7a733a0dac1c5091)
parse.h
Go to the documentation of this file.
1 #ifndef RBIMPL_INTERN_PARSE_H /*-*-C++-*-vi:se ft=cpp:*/
2 #define RBIMPL_INTERN_PARSE_H
26 #include "ruby/internal/value.h"
27 
29 
30 /* symbol.c */
31 
32 
40 ID rb_id_attrset(ID id);
41 
53 int rb_is_const_id(ID id);
54 
64 int rb_is_global_id(ID id);
65 
75 int rb_is_instance_id(ID id);
76 
86 int rb_is_attrset_id(ID id);
87 
97 int rb_is_class_id(ID id);
98 
109 int rb_is_local_id(ID id);
110 
121 int rb_is_junk_id(ID);
122 
132 int rb_symname_p(const char *str);
133 
134 /* vm.c */
135 
143 VALUE rb_backref_get(void);
144 
158 void rb_backref_set(VALUE md);
159 
167 VALUE rb_lastline_get(void);
168 
180 void rb_lastline_set(VALUE str);
181 
182 /* symbol.c */
183 
191 
193 
194 #endif /* RBIMPL_INTERN_PARSE_H */
Defines RBIMPL_ATTR_CONST.
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:74
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:65
VALUE rb_backref_get(void)
Queries the last match, or Regexp.last_match, or the $~.
Definition: vm.c:1817
VALUE rb_sym_all_symbols(void)
Collects every single bits of symbols that have ever interned in the entire history of the current pr...
Definition: symbol.c:1042
int rb_is_global_id(ID id)
Classifies the given ID, then sees if it is a global variable.
Definition: symbol.c:1075
void rb_lastline_set(VALUE str)
Updates $_.
Definition: vm.c:1835
int rb_is_instance_id(ID id)
Classifies the given ID, then sees if it is an instance variable.
Definition: symbol.c:1081
int rb_is_const_id(ID id)
Classifies the given ID, then sees if it is a constant.
Definition: symbol.c:1063
int rb_is_junk_id(ID)
Classifies the given ID, then sees if it is a junk ID.
Definition: symbol.c:1099
int rb_symname_p(const char *str)
Sees if the passed C string constructs a valid syntactic symbol.
Definition: symbol.c:205
VALUE rb_lastline_get(void)
Queries the last line, or the $_.
Definition: vm.c:1829
ID rb_id_attrset(ID id)
Calculates an ID of attribute writer.
Definition: symbol.c:121
int rb_is_class_id(ID id)
Classifies the given ID, then sees if it is a class variable.
Definition: symbol.c:1069
int rb_is_attrset_id(ID id)
Classifies the given ID, then sees if it is an attribute writer.
Definition: symbol.c:1087
int rb_is_local_id(ID id)
Classifies the given ID, then sees if it is a local variable.
Definition: symbol.c:1093
void rb_backref_set(VALUE md)
Updates $~.
Definition: vm.c:1823
RBIMPL_ATTR_CONST() int rb_io_oflags_fmode(int oflags)
Converts an oflags (that rb_io_modestr_oflags() returns) to a fmode (that rb_io_mode_flags() returns)...
Defines RBIMPL_ATTR_NONNULL.
#define RBIMPL_ATTR_NONNULL(list)
Wraps (or simulates) __attribute__((nonnull))
Definition: nonnull.h:27
Defines VALUE and ID.
uintptr_t ID
Type that represents a Ruby identifier such as a variable name.
Definition: value.h:52
uintptr_t VALUE
Type that represents a Ruby object.
Definition: value.h:40