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);
|
||||
|
||||
/* format using string.format */
|
||||
lua_getglobal(L, "string");
|
||||
lua_getfield(L, -1, "format");
|
||||
/* format using string.format rules */
|
||||
lua_pushcfunction(L, lstrfmt);
|
||||
|
||||
paramc = lua_gettop(L); /* get parameter count */
|
||||
for (i = 1 + shift; i <= paramc; i++) { /* for every parameter */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue