Ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e0ba6b95ab71a441357ed5484e33498)
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
40ID rb_id_attrset(ID id);
41
53int rb_is_const_id(ID id);
54
64int rb_is_global_id(ID id);
65
75int rb_is_instance_id(ID id);
76
86int rb_is_attrset_id(ID id);
87
97int rb_is_class_id(ID id);
98
109int rb_is_local_id(ID id);
110
121int rb_is_junk_id(ID);
122
132int rb_symname_p(const char *str);
133
134/* vm.c */
135
143VALUE rb_backref_get(void);
144
158void rb_backref_set(VALUE md);
159
167VALUE rb_lastline_get(void);
168
180void rb_lastline_set(VALUE str);
181
182/* symbol.c */
183
190VALUE rb_sym_all_symbols(void);
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:106
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:97
VALUE rb_backref_get(void)
Queries the last match, or Regexp.last_match, or the $~.
Definition: vm.c:1580
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:991
int rb_is_global_id(ID id)
Classifies the given ID, then sees if it is a global variable.
Definition: symbol.c:1024
void rb_lastline_set(VALUE str)
Updates $_.
Definition: vm.c:1598
int rb_is_instance_id(ID id)
Classifies the given ID, then sees if it is an instance variable.
Definition: symbol.c:1030
int rb_is_const_id(ID id)
Classifies the given ID, then sees if it is a constant.
Definition: symbol.c:1012
int rb_is_junk_id(ID)
Classifies the given ID, then sees if it is a junk ID.
Definition: symbol.c:1048
int rb_symname_p(const char *str)
Sees if the passed C string constructs a valid syntactic symbol.
Definition: symbol.c:197
VALUE rb_lastline_get(void)
Queries the last line, or the $_.
Definition: vm.c:1592
ID rb_id_attrset(ID id)
Calculates an ID of attribute writer.
Definition: symbol.c:113
int rb_is_class_id(ID id)
Classifies the given ID, then sees if it is a class variable.
Definition: symbol.c:1018
int rb_is_attrset_id(ID id)
Classifies the given ID, then sees if it is an attribute writer.
Definition: symbol.c:1036
int rb_is_local_id(ID id)
Classifies the given ID, then sees if it is a local variable.
Definition: symbol.c:1042
void rb_backref_set(VALUE md)
Updates $~.
Definition: vm.c:1586
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.