aboutsummaryrefslogtreecommitdiff
path: root/src/lj_strfmt.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_strfmt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lj_strfmt.h b/src/lj_strfmt.h
index b3556f1a..c440f946 100644
--- a/src/lj_strfmt.h
+++ b/src/lj_strfmt.h
@@ -73,6 +73,7 @@ static LJ_AINLINE void lj_strfmt_init(FormatState *fs, const char *p, MSize len)
73} 73}
74 74
75LJ_FUNC SFormat LJ_FASTCALL lj_strfmt_parse(FormatState *fs); 75LJ_FUNC SFormat LJ_FASTCALL lj_strfmt_parse(FormatState *fs);
76
76LJ_FUNC SBuf *lj_strfmt_putchar(SBuf *sb, SFormat, int32_t c); 77LJ_FUNC SBuf *lj_strfmt_putchar(SBuf *sb, SFormat, int32_t c);
77LJ_FUNC SBuf *lj_strfmt_putstr(SBuf *sb, SFormat, GCstr *str); 78LJ_FUNC SBuf *lj_strfmt_putstr(SBuf *sb, SFormat, GCstr *str);
78LJ_FUNC SBuf *lj_strfmt_putquoted(SBuf *sb, GCstr *str); 79LJ_FUNC SBuf *lj_strfmt_putquoted(SBuf *sb, GCstr *str);
@@ -81,4 +82,12 @@ LJ_FUNC SBuf *lj_strfmt_putnum_int(SBuf *sb, SFormat sf, lua_Number n);
81LJ_FUNC SBuf *lj_strfmt_putnum_uint(SBuf *sb, SFormat sf, lua_Number n); 82LJ_FUNC SBuf *lj_strfmt_putnum_uint(SBuf *sb, SFormat sf, lua_Number n);
82LJ_FUNC SBuf *lj_strfmt_putnum(SBuf *sb, SFormat, lua_Number n); 83LJ_FUNC SBuf *lj_strfmt_putnum(SBuf *sb, SFormat, lua_Number n);
83 84
85LJ_FUNC const char *lj_strfmt_pushvf(lua_State *L, const char *fmt,
86 va_list argp);
87LJ_FUNC const char *lj_strfmt_pushf(lua_State *L, const char *fmt, ...)
88#ifdef __GNUC__
89 __attribute__ ((format (printf, 2, 3)))
90#endif
91 ;
92
84#endif 93#endif