Ruby
2.7.1p83(2020-03-31revisiona0c7c23c9cec0d0ffcba012279cd652d28ad5bf3)
|
Go to the documentation of this file.
48 RUBY_FMODE_NOREVLOOKUP = 0x00000100,
51 RUBY_FMODE_PREP = 0x00010000,
53 RUBY_FMODE_UNIX = 0x00200000,
54 RUBY_FMODE_INET = 0x00400000,
55 RUBY_FMODE_INET6 = 0x00800000,
76 if (level < debug_level) {
98 if (level < debug_level) {
117 if (level < debug_level) {
127 if (level < debug_level) {
141 # if RUBY_MSVCRT_VERSION >= 80
142 extern int ruby_w32_rtc_error;
145 #if defined _WIN32 || defined __CYGWIN__
147 UINT ruby_w32_codepage[2];
158 #define SET_WHEN(name, var, val) do { \
159 if (len == sizeof(name) - 1 && \
160 strncmp(str, (name), len) == 0) { \
165 #define NAME_MATCH_VALUE(name) \
166 ((size_t)len >= sizeof(name)-1 && \
167 strncmp(str, (name), sizeof(name)-1) == 0 && \
168 ((len == sizeof(name)-1 && !(len = 0)) || \
169 (str[sizeof(name)-1] == '=' && \
170 (str += sizeof(name), len -= sizeof(name), 1))))
171 #define SET_UINT(val) do { \
172 n = ruby_scan_digits(str, len, 10, &retlen, &ov); \
173 if (!ov && retlen) { \
174 val = (unsigned int)n; \
179 #define SET_UINT_LIST(name, vals, num) do { \
181 for (i = 0; i < (num); ++i) { \
182 SET_UINT((vals)[i]); \
183 if (!len || *str != ':') break; \
188 fprintf(stderr, "ignored "name" option: `%.*s'\n", len, str); \
191 #define SET_WHEN_UINT(name, vals, num, req) \
192 if (NAME_MATCH_VALUE(name)) SET_UINT_LIST(name, vals, num);
203 # if RUBY_MSVCRT_VERSION >= 80
204 SET_WHEN(
"rtc_error", ruby_w32_rtc_error, 1);
207 #if defined _WIN32 || defined __CYGWIN__
218 set_debug_option(
const char *
str,
int len,
void *
arg)
const char * ruby_node_name(int node)
const char * rb_raw_obj_info(char *buff, const int buff_size, VALUE obj)
const char * rb_id2name(ID)
enum ruby_value_type value_type
enum ruby_rmodule_flags rmodule_flags
enum ruby_special_consts special_consts
const SIGNED_VALUE RUBY_NODE_LMASK
enum ruby_id_types id_types
void ruby_debug_breakpoint(void)
NODE * ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node)
VALUE * ruby_initial_gc_stress_ptr
#define SET_WHEN(name, var, val)
VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE obj)
enum ruby_encoding_consts encoding_consts
#define FMODE_SETENC_BY_BOM
enum ruby_method_ids method_ids
void ruby_debug_printf(const char *format,...)
int ruby_debug_print_indent(int level, int debug_level, int indent_level)
char str[HTML_ESCAPE_MAX_LEN+1]
enum ruby_fl_type fl_types
int ruby_env_debug_option(const char *str, int len, void *arg)
enum ruby_rarray_flags rarray_flags
enum ruby_tag_type tag_type
enum ruby_coderange_type enc_coderange_types
ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id)
#define SET_UINT_LIST(name, vals, num)
struct RSymbol * symbol_ptr
#define NAME_MATCH_VALUE(name)
enum vm_call_flag_bits vm_call_flags
enum ruby_econv_flag_type econv_flag_types
const union @11 ruby_dummy_gdb_enums
void ruby_debug_print_v(VALUE v)
enum ruby_rstring_flags rstring_flags
void ruby_set_debug_option(const char *str)
void ruby_each_words(const char *, void(*)(const char *, int, void *), void *)
enum ruby_robject_flags robject_flags