Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 31) sorted by relevance

12

/redis-3.2.3/deps/lua/src/
H A Dlua_struct.c93 if (!isdigit(**fmt)) /* no number? */ in getnum()
100 a = a*10 + *((*fmt)++) - '0'; in getnum()
101 } while (isdigit(**fmt)); in getnum()
120 case 'c': return getnum(L, fmt, 1); in optsize()
155 int a = getnum(L, fmt, MAXALIGN); in controloptions()
217 while (*fmt != '\0') { in b_pack()
218 int opt = *fmt++; in b_pack()
301 while (*fmt) { in b_unpack()
302 int opt = *fmt++; in b_unpack()
365 while (*fmt) { in b_size()
[all …]
H A Dfpconv.c153 static void set_number_format(char *fmt, int precision) in set_number_format() argument
162 fmt[0] = '%'; in set_number_format()
163 fmt[1] = '.'; in set_number_format()
166 fmt[i++] = '0' + d1; in set_number_format()
168 fmt[i++] = '0' + d2; in set_number_format()
169 fmt[i++] = 'g'; in set_number_format()
170 fmt[i] = 0; in set_number_format()
177 char fmt[6]; in fpconv_g_fmt() local
181 set_number_format(fmt, precision); in fpconv_g_fmt()
185 return snprintf(str, FPCONV_G_FMT_BUFSIZE, fmt, num); in fpconv_g_fmt()
[all …]
H A Dstrbuf.c32 static void die(const char *fmt, ...) in die() argument
36 va_start(arg, fmt); in die()
37 vfprintf(stderr, fmt, arg); in die()
202 void strbuf_append_fmt(strbuf_t *s, int len, const char *fmt, ...) in strbuf_append_fmt() argument
209 va_start(arg, fmt); in strbuf_append_fmt()
210 fmt_len = vsnprintf(s->buf + s->length, len, fmt, arg); in strbuf_append_fmt()
221 void strbuf_append_fmt_retry(strbuf_t *s, const char *fmt, ...) in strbuf_append_fmt_retry() argument
230 va_start(arg, fmt); in strbuf_append_fmt_retry()
236 fmt_len = vsnprintf(s->buf + s->length, empty_len + 1, fmt, arg); in strbuf_append_fmt_retry()
H A Dlobject.c111 const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) { in luaO_pushvfstring() argument
115 const char *e = strchr(fmt, '%'); in luaO_pushvfstring()
117 setsvalue2s(L, L->top, luaS_newlstr(L, fmt, e-fmt)); in luaO_pushvfstring()
163 fmt = e+2; in luaO_pushvfstring()
165 pushstr(L, fmt); in luaO_pushvfstring()
172 const char *luaO_pushfstring (lua_State *L, const char *fmt, ...) { in luaO_pushfstring() argument
175 va_start(argp, fmt); in luaO_pushfstring()
176 msg = luaO_pushvfstring(L, fmt, argp); in luaO_pushfstring()
H A Dldebug.h28 LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...);
H A Dstrbuf.h70 extern void strbuf_append_fmt(strbuf_t *s, int len, const char *fmt, ...);
H A Dlobject.h374 LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt,
376 LUAI_FUNC const char *luaO_pushfstring (lua_State *L, const char *fmt, ...);
H A Dlua.h165 LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt,
167 LUA_API const char *(lua_pushfstring) (lua_State *L, const char *fmt, ...);
H A Dlapi.c462 LUA_API const char *lua_pushvfstring (lua_State *L, const char *fmt, in lua_pushvfstring() argument
467 ret = luaO_pushvfstring(L, fmt, argp); in lua_pushvfstring()
473 LUA_API const char *lua_pushfstring (lua_State *L, const char *fmt, ...) { in lua_pushfstring() argument
478 va_start(argp, fmt); in lua_pushfstring()
479 ret = luaO_pushvfstring(L, fmt, argp); in lua_pushfstring()
H A Dlauxlib.c86 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error() argument
88 va_start(argp, fmt); in luaL_error()
90 lua_pushvfstring(L, fmt, argp); in luaL_error()
H A Dldebug.c631 void luaG_runerror (lua_State *L, const char *fmt, ...) { in luaG_runerror() argument
633 va_start(argp, fmt); in luaG_runerror()
634 addinfo(L, luaO_pushvfstring(L, fmt, argp)); in luaG_runerror()
H A Dlauxlib.h69 LUALIB_API int (luaL_error) (lua_State *L, const char *fmt, ...);
/redis-3.2.3/src/
H A Dredis-check-rdb.c100 void rdbCheckError(const char *fmt, ...) { in rdbCheckError() argument
104 va_start(ap, fmt); in rdbCheckError()
105 vsnprintf(msg, sizeof(msg), fmt, ap); in rdbCheckError()
127 void rdbCheckInfo(const char *fmt, ...) { in rdbCheckInfo() argument
131 va_start(ap, fmt); in rdbCheckInfo()
132 vsnprintf(msg, sizeof(msg), fmt, ap); in rdbCheckInfo()
142 void rdbCheckSetError(const char *fmt, ...) { in rdbCheckSetError() argument
145 va_start(ap, fmt); in rdbCheckSetError()
146 vsnprintf(rdbstate.error, sizeof(rdbstate.error), fmt, ap); in rdbCheckSetError()
H A Danet.h76 int anetFormatAddr(char *fmt, size_t fmt_len, char *ip, int port);
77 int anetFormatPeer(int fd, char *fmt, size_t fmt_len);
78 int anetFormatSock(int fd, char *fmt, size_t fmt_len);
H A Dsetproctitle.c216 void setproctitle(const char *fmt, ...) { in setproctitle() argument
225 if (fmt) { in setproctitle()
226 va_start(ap, fmt); in setproctitle()
227 len = vsnprintf(buf, sizeof buf, fmt, ap); in setproctitle()
H A Dsds.h229 sds sdscatvprintf(sds s, const char *fmt, va_list ap);
231 sds sdscatprintf(sds s, const char *fmt, ...)
234 sds sdscatprintf(sds s, const char *fmt, ...);
237 sds sdscatfmt(sds s, char const *fmt, ...);
H A Dsds.c501 sds sdscatvprintf(sds s, const char *fmt, va_list ap) { in sdscatvprintf() argument
504 size_t buflen = strlen(fmt)*2; in sdscatvprintf()
520 vsnprintf(buf, buflen, fmt, cpy); in sdscatvprintf()
554 sds sdscatprintf(sds s, const char *fmt, ...) { in sdscatprintf() argument
557 va_start(ap, fmt); in sdscatprintf()
558 t = sdscatvprintf(s,fmt,ap); in sdscatprintf()
579 sds sdscatfmt(sds s, char const *fmt, ...) { in sdscatfmt() argument
581 const char *f = fmt; in sdscatfmt()
585 va_start(ap,fmt); in sdscatfmt()
586 f = fmt; /* Next format specifier byte to process. */ in sdscatfmt()
H A Danet.c51 static void anetSetError(char *err, const char *fmt, ...) in anetSetError() argument
56 va_start(ap, fmt); in anetSetError()
57 vsnprintf(err, ANET_ERR_LEN, fmt, ap); in anetSetError()
649 int anetFormatSock(int fd, char *fmt, size_t fmt_len) { in anetFormatSock() argument
654 return anetFormatAddr(fmt, fmt_len, ip, port); in anetFormatSock()
H A Dconfig.h128 void setproctitle(const char *fmt, ...);
H A Dserver.h1146 void addReplyErrorFormat(client *c, const char *fmt, ...)
1148 void addReplyStatusFormat(client *c, const char *fmt, ...)
1151 void addReplyErrorFormat(client *c, const char *fmt, ...);
1152 void addReplyStatusFormat(client *c, const char *fmt, ...);
1321 void serverLog(int level, const char *fmt, ...)
1324 void serverLog(int level, const char *fmt, ...);
1670 #define redisDebug(fmt, ...) \ argument
1671 printf("DEBUG %s:%d > " fmt "\n", __FILE__, __LINE__, __VA_ARGS__)
H A Dnetworking.c395 void addReplyErrorFormat(client *c, const char *fmt, ...) { in addReplyErrorFormat() argument
398 va_start(ap,fmt); in addReplyErrorFormat()
399 sds s = sdscatvprintf(sdsempty(),fmt,ap); in addReplyErrorFormat()
421 void addReplyStatusFormat(client *c, const char *fmt, ...) { in addReplyStatusFormat() argument
423 va_start(ap,fmt); in addReplyStatusFormat()
424 sds s = sdscatvprintf(sdsempty(),fmt,ap); in addReplyStatusFormat()
/redis-3.2.3/deps/hiredis/
H A Dsds.h229 sds sdscatvprintf(sds s, const char *fmt, va_list ap);
231 sds sdscatprintf(sds s, const char *fmt, ...)
234 sds sdscatprintf(sds s, const char *fmt, ...);
237 sds sdscatfmt(sds s, char const *fmt, ...);
H A Dsds.c501 sds sdscatvprintf(sds s, const char *fmt, va_list ap) { in sdscatvprintf() argument
504 size_t buflen = strlen(fmt)*2; in sdscatvprintf()
520 vsnprintf(buf, buflen, fmt, cpy); in sdscatvprintf()
554 sds sdscatprintf(sds s, const char *fmt, ...) { in sdscatprintf() argument
557 va_start(ap, fmt); in sdscatprintf()
558 t = sdscatvprintf(s,fmt,ap); in sdscatprintf()
579 sds sdscatfmt(sds s, char const *fmt, ...) { in sdscatfmt() argument
581 const char *f = fmt; in sdscatfmt()
585 va_start(ap,fmt); in sdscatfmt()
586 f = fmt; /* Next format specifier byte to process. */ in sdscatfmt()
/redis-3.2.3/deps/jemalloc/test/integration/
H A Dchunk.c22 # define TRACE_HOOK(fmt, ...) malloc_printf(fmt, __VA_ARGS__)
24 # define TRACE_HOOK(fmt, ...) argument
/redis-3.2.3/tests/unit/type/
H A Dstring.tcl219 set fmt [format "%%-%ds%%d%%-s" $bitnum]
222 set str [string map {" " 0} [format $fmt $head $bitval $tail]]

12