summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorKouhei Sutou <[email protected]>2016-09-25 21:47:32 +0900
committerKouhei Sutou <[email protected]>2016-09-25 21:47:49 +0900
commit91bd3ebd32097d6f26e0ee18b73b27692c171a26 (patch)
treebe5adf84331ef2d37ba23530bafd6fb7472c1c0e /src
parent7a382e8bdfeb745ccda70c749daa0bc94fe51f3b (diff)
downloadmruby-91bd3ebd32097d6f26e0ee18b73b27692c171a26.tar.gz
mruby-91bd3ebd32097d6f26e0ee18b73b27692c171a26.zip
Remove needless MRB_API
ref #3215 If a function (such as mrb_read_irep_file()) is declared without MRB_API in header file (such as include/mruby/dump.h), implementation of the function in source file (such as src/load.c) should also defined without MRB_API. If MRB_API is mismatch, Visual C++ reports link error with C2375 error code: https://msdn.microsoft.com/en-us/library/5k6kw95a.aspx
Diffstat (limited to 'src')
-rw-r--r--src/load.c2
-rw-r--r--src/proc.c2
-rw-r--r--src/string.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/load.c b/src/load.c
index e3f31a3fd..18b1d3713 100644
--- a/src/load.c
+++ b/src/load.c
@@ -646,7 +646,7 @@ mrb_load_irep(mrb_state *mrb, const uint8_t *bin)
#ifndef MRB_DISABLE_STDIO
-MRB_API mrb_irep*
+mrb_irep*
mrb_read_irep_file(mrb_state *mrb, FILE* fp)
{
mrb_irep *irep = NULL;
diff --git a/src/proc.c b/src/proc.c
index 34037b167..1620bddf8 100644
--- a/src/proc.c
+++ b/src/proc.c
@@ -135,7 +135,7 @@ mrb_proc_cfunc_env_get(mrb_state *mrb, mrb_int idx)
return e->stack[idx];
}
-MRB_API void
+void
mrb_proc_copy(struct RProc *a, struct RProc *b)
{
a->flags = b->flags;
diff --git a/src/string.c b/src/string.c
index 15fcc502a..61aa08577 100644
--- a/src/string.c
+++ b/src/string.c
@@ -576,7 +576,7 @@ str_rindex(mrb_state *mrb, mrb_value str, mrb_value sub, mrb_int pos)
}
}
-MRB_API mrb_int
+mrb_int
mrb_str_strlen(mrb_state *mrb, struct RString *s)
{
mrb_int i, max = RSTR_LEN(s);