cl: use lstrfmt over string.format
This commit is contained in:
parent
89e584c5f5
commit
3fa54b0cfc
1 changed files with 2 additions and 3 deletions
5
lcl.c
5
lcl.c
|
@ -41,9 +41,8 @@ fmesgshift(lua_State *L, int fd, int shift)
|
||||||
}
|
}
|
||||||
progname = (char *)lua_tostring(L, -1);
|
progname = (char *)lua_tostring(L, -1);
|
||||||
|
|
||||||
/* format using string.format */
|
/* format using string.format rules */
|
||||||
lua_getglobal(L, "string");
|
lua_pushcfunction(L, lstrfmt);
|
||||||
lua_getfield(L, -1, "format");
|
|
||||||
|
|
||||||
paramc = lua_gettop(L); /* get parameter count */
|
paramc = lua_gettop(L); /* get parameter count */
|
||||||
for (i = 1 + shift; i <= paramc; i++) { /* for every parameter */
|
for (i = 1 + shift; i <= paramc; i++) { /* for every parameter */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue