summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/mruby/compile.h10
-rw-r--r--src/parse.y8
2 files changed, 9 insertions, 9 deletions
diff --git a/include/mruby/compile.h b/include/mruby/compile.h
index a85939998..e20473298 100644
--- a/include/mruby/compile.h
+++ b/include/mruby/compile.h
@@ -32,12 +32,12 @@ typedef struct mrbc_context {
mrb_bool no_optimize:1;
} mrbc_context;
-mrbc_context* mrbc_context_new(mrb_state *mrb);
-void mrbc_context_free(mrb_state *mrb, mrbc_context *cxt);
-const char *mrbc_filename(mrb_state *mrb, mrbc_context *c, const char *s);
-void mrbc_partial_hook(mrb_state *mrb, mrbc_context *c, int (*partial_hook)(struct mrb_parser_state*), void*data);
+MRB_API mrbc_context* mrbc_context_new(mrb_state *mrb);
+MRB_API void mrbc_context_free(mrb_state *mrb, mrbc_context *cxt);
+MRB_API const char *mrbc_filename(mrb_state *mrb, mrbc_context *c, const char *s);
+MRB_API void mrbc_partial_hook(mrb_state *mrb, mrbc_context *c, int (*partial_hook)(struct mrb_parser_state*), void*data);
-mrb_value mrb_toplevel_run_keep(mrb_state*, struct RProc*, unsigned int);
+MRB_API mrb_value mrb_toplevel_run_keep(mrb_state*, struct RProc*, unsigned int);
/* AST node structure */
typedef struct mrb_ast_node {
diff --git a/src/parse.y b/src/parse.y
index 4cab4162a..e77085332 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -5439,7 +5439,7 @@ mrb_parser_free(parser_state *p) {
mrb_pool_close(p->pool);
}
-mrbc_context*
+MRB_API mrbc_context*
mrbc_context_new(mrb_state *mrb)
{
mrbc_context *c;
@@ -5448,14 +5448,14 @@ mrbc_context_new(mrb_state *mrb)
return c;
}
-void
+MRB_API void
mrbc_context_free(mrb_state *mrb, mrbc_context *cxt)
{
mrb_free(mrb, cxt->syms);
mrb_free(mrb, cxt);
}
-const char*
+MRB_API const char*
mrbc_filename(mrb_state *mrb, mrbc_context *c, const char *s)
{
if (s) {
@@ -5468,7 +5468,7 @@ mrbc_filename(mrb_state *mrb, mrbc_context *c, const char *s)
return c->filename;
}
-void
+MRB_API void
mrbc_partial_hook(mrb_state *mrb, mrbc_context *c, int (*func)(struct mrb_parser_state*), void *data)
{
c->partial_hook = func;