diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-05 12:06:14 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-05 12:06:14 -0700 |
commit | d1c9bff73716b6772f56e3e899e36997ab33ab12 (patch) | |
tree | f9a2449006d29cbc99637f87f30cf9a87e2c2716 | |
parent | ffaf456654bdf836526771801d64c6d85f4c7a54 (diff) | |
download | teliva-d1c9bff73716b6772f56e3e899e36997ab33ab12.tar.gz |
reindent
I'm trying to follow the style of lua sources even when they're not my preference. lcurses code is a bit different.
-rw-r--r-- | src/lcurseslib.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lcurseslib.c b/src/lcurseslib.c index ce8ec0e..394cd84 100644 --- a/src/lcurseslib.c +++ b/src/lcurseslib.c @@ -42,10 +42,10 @@ static void curses_newwin (lua_State *L, WINDOW *nw) { static WINDOW **lc_getwin (lua_State *L, int offset) { - WINDOW **w = (WINDOW**)luaL_checkudata(L, offset, "curses:window"); - if (w == NULL) - luaL_argerror(L, offset, "bad curses window"); - return w; + WINDOW **w = (WINDOW**)luaL_checkudata(L, offset, "curses:window"); + if (w == NULL) + luaL_argerror(L, offset, "bad curses window"); + return w; } @@ -60,9 +60,9 @@ static WINDOW *checkwin (lua_State *L, int offset) { static int argtypeerror(lua_State *L, int narg, const char *expected) { - const char *got = luaL_typename(L, narg); - return luaL_argerror(L, narg, - lua_pushfstring(L, "%s expected, got %s", expected, got)); + const char *got = luaL_typename(L, narg); + return luaL_argerror(L, narg, + lua_pushfstring(L, "%s expected, got %s", expected, got)); } |