mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby/internal.h: add codedump functions to the internal function header
ref #5906
This commit is contained in:
@@ -38,6 +38,12 @@ int mrb_dump_irep_cstruct(mrb_state *mrb, const mrb_irep*, uint8_t flags, FILE *
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* codedump */
|
||||
void mrb_codedump_all(mrb_state *mrb, struct RProc *proc);
|
||||
#ifndef MRB_NO_STDIO
|
||||
void mrb_codedump_all_file(mrb_state *mrb, struct RProc *proc, FILE *out);
|
||||
#endif
|
||||
|
||||
/* error */
|
||||
mrb_value mrb_exc_inspect(mrb_state *mrb, mrb_value exc);
|
||||
mrb_value mrb_exc_backtrace(mrb_state *mrb, mrb_value exc);
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <mruby/variable.h>
|
||||
#include <mruby/error.h>
|
||||
#include <mruby/presym.h>
|
||||
#include <mruby/internal.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -380,8 +381,6 @@ print_cmdline(int code_block_open)
|
||||
}
|
||||
#endif
|
||||
|
||||
void mrb_codedump_all(mrb_state*, struct RProc*);
|
||||
|
||||
static int
|
||||
check_keyword(const char *buf, const char *word)
|
||||
{
|
||||
|
||||
@@ -6627,7 +6627,6 @@ parser_update_cxt(parser_state *p, mrbc_context *cxt)
|
||||
}
|
||||
}
|
||||
|
||||
void mrb_codedump_all(mrb_state*, struct RProc*);
|
||||
void mrb_parser_dump(mrb_state *mrb, node *tree, int offset);
|
||||
|
||||
MRB_API void
|
||||
|
||||
+1723
-1347
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,6 @@
|
||||
#include <mruby/internal.h>
|
||||
|
||||
struct REnv *mrb_env_new(mrb_state *mrb, struct mrb_context *c, mrb_callinfo *ci, int nstacks, mrb_value *stack, struct RClass *tc);
|
||||
void mrb_codedump_all(mrb_state*, struct RProc*);
|
||||
|
||||
static struct RProc*
|
||||
create_proc_from_string(mrb_state *mrb, const char *s, mrb_int len, mrb_value binding, const char *file, mrb_int line)
|
||||
|
||||
@@ -669,8 +669,6 @@ irep_error(mrb_state *mrb)
|
||||
mrb_exc_set(mrb, mrb_exc_new_lit(mrb, E_SCRIPT_ERROR, "irep load error"));
|
||||
}
|
||||
|
||||
void mrb_codedump_all(mrb_state*, struct RProc*);
|
||||
|
||||
static mrb_value
|
||||
load_irep(mrb_state *mrb, struct RProc *proc, mrbc_context *c)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user