1 #ifndef INTERNAL_COMPILE_H /*-*-C-*-vi:se ft=c:*/
2 #define INTERNAL_COMPILE_H
4 * @author Ruby developers <ruby-core@ruby-lang.org>
5 * @copyright This file is a part of the programming language Ruby.
6 * Permission is hereby granted, to either redistribute and/or
7 * modify this file, provided that the conditions mentioned in the
8 * file COPYING are met. Consult the file for details.
9 * @brief Internal header for the compiler.
11 #include "ruby/internal/config.h"
12 #include <stddef.h> /* for size_t */
13 #include "ruby/ruby.h" /* for rb_event_flag_t */
15 struct rb_iseq_struct
; /* in vm_core.h */
18 int rb_dvar_defined(ID
, const struct rb_iseq_struct
*);
19 int rb_local_defined(ID
, const struct rb_iseq_struct
*);
20 bool rb_insns_leaf_p(int i
);
21 int rb_insn_len(VALUE insn
);
22 const char *rb_insns_name(int i
);
23 VALUE
rb_insns_name_array(void);
24 int rb_iseq_cdhash_cmp(VALUE val
, VALUE lit
);
25 st_index_t
rb_iseq_cdhash_hash(VALUE a
);
28 int rb_vm_insn_addr2insn(const void *);
29 int rb_vm_insn_decode(const VALUE encoded
);
30 extern bool ruby_vm_keep_script_lines
;
33 rb_event_flag_t
rb_iseq_event_flags(const struct rb_iseq_struct
*iseq
, size_t pos
);
35 #endif /* INTERNAL_COMPILE_H */