Ruby: internal/compile.h Source File

Ruby 3.4.3p32 (2025-04-14 revision d0b7e5b6a04bde21ca483d20a1546b28b401c2d4)

compile.h
1#ifndef INTERNAL_COMPILE_H /*-*-C-*-vi:se ft=c:*/
2#define INTERNAL_COMPILE_H
11#include "ruby/internal/config.h"
12#include <stddef.h> /* for size_t */
13#include "ruby/ruby.h" /* for rb_event_flag_t */
14
15struct rb_iseq_struct; /* in vm_core.h */
16
17/* compile.c */
18int rb_dvar_defined(ID, const struct rb_iseq_struct *);
19int rb_local_defined(ID, const struct rb_iseq_struct *);
20int rb_insn_len(VALUE insn);
21const char *rb_insns_name(int i);
22 VALUE rb_insns_name_array(void);
23int rb_iseq_cdhash_cmp(VALUE val, VALUE lit);
24st_index_t rb_iseq_cdhash_hash(VALUE a);
25
26/* iseq.c */
27int rb_vm_insn_addr2insn(const void *);
28int rb_vm_insn_decode(const VALUE encoded);
29extern bool ruby_vm_keep_script_lines;
30
31/* iseq.c (export) */
32 rb_event_flag_t rb_iseq_event_flags(const struct rb_iseq_struct *iseq, size_t pos);
33
34#endif /* INTERNAL_COMPILE_H */
rb_event_flag_t
uint32_t rb_event_flag_t
Represents event(s).
Definition event.h:108
ruby.h
rb_iseq_struct
Definition vm_core.h:568
ID
uintptr_t ID
Type that represents a Ruby identifier such as a variable name.
Definition value.h:52
VALUE
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40