From d1c9bff73716b6772f56e3e899e36997ab33ab12 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 5 Nov 2021 12:06:14 -0700 Subject: reindent I'm trying to follow the style of lua sources even when they're not my preference. lcurses code is a bit different. --- src/lcurseslib.c | 14 +++++++------- 1 file 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)); } -- cgit 1.4.1-2-gfad0