diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-09-05 00:54:51 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-09-05 00:54:51 +0900 |
| commit | 81c894a1c6d639897098bd0eec3c869642811bd2 (patch) | |
| tree | f60b38c7cf37b4eb016c8109d667f42b848faef4 /src/parse.y | |
| parent | 8696986994e30295ea0485d7be38d45b94ed3309 (diff) | |
| download | mruby-81c894a1c6d639897098bd0eec3c869642811bd2.tar.gz mruby-81c894a1c6d639897098bd0eec3c869642811bd2.zip | |
add some MRB_API to function prototypes
Diffstat (limited to 'src/parse.y')
| -rw-r--r-- | src/parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
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; |
