diff options
Diffstat (limited to 'src/lj_str.h')
-rw-r--r-- | src/lj_str.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lj_str.h b/src/lj_str.h index f7e56d16..e8b242c0 100644 --- a/src/lj_str.h +++ b/src/lj_str.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #include "lj_obj.h" | 11 | #include "lj_obj.h" |
12 | 12 | ||
13 | /* String interning. */ | 13 | /* String interning. */ |
14 | LJ_FUNCA int32_t lj_str_cmp(GCstr *a, GCstr *b); | 14 | LJ_FUNC int32_t LJ_FASTCALL lj_str_cmp(GCstr *a, GCstr *b); |
15 | LJ_FUNC void lj_str_resize(lua_State *L, MSize newmask); | 15 | LJ_FUNC void lj_str_resize(lua_State *L, MSize newmask); |
16 | LJ_FUNCA GCstr *lj_str_new(lua_State *L, const char *str, size_t len); | 16 | LJ_FUNCA GCstr *lj_str_new(lua_State *L, const char *str, size_t len); |
17 | LJ_FUNC void LJ_FASTCALL lj_str_free(global_State *g, GCstr *s); | 17 | LJ_FUNC void LJ_FASTCALL lj_str_free(global_State *g, GCstr *s); |
@@ -20,9 +20,10 @@ LJ_FUNC void LJ_FASTCALL lj_str_free(global_State *g, GCstr *s); | |||
20 | #define lj_str_newlit(L, s) (lj_str_new(L, "" s, sizeof(s)-1)) | 20 | #define lj_str_newlit(L, s) (lj_str_new(L, "" s, sizeof(s)-1)) |
21 | 21 | ||
22 | /* Type conversions. */ | 22 | /* Type conversions. */ |
23 | LJ_FUNCA int lj_str_numconv(const char *s, TValue *n); | 23 | LJ_FUNC int LJ_FASTCALL lj_str_numconv(const char *s, TValue *n); |
24 | LJ_FUNCA GCstr *lj_str_fromnum(lua_State *L, const lua_Number *np); | 24 | LJ_FUNC int LJ_FASTCALL lj_str_tonum(GCstr *str, TValue *n); |
25 | LJ_FUNCA GCstr *lj_str_fromint(lua_State *L, int32_t k); | 25 | LJ_FUNCA GCstr * LJ_FASTCALL lj_str_fromnum(lua_State *L, const lua_Number *np); |
26 | LJ_FUNC GCstr * LJ_FASTCALL lj_str_fromint(lua_State *L, int32_t k); | ||
26 | 27 | ||
27 | /* String formatting. */ | 28 | /* String formatting. */ |
28 | LJ_FUNC const char *lj_str_pushvf(lua_State *L, const char *fmt, va_list argp); | 29 | LJ_FUNC const char *lj_str_pushvf(lua_State *L, const char *fmt, va_list argp); |