From 7505e88db66798b2b8fcdff2d92a7136cd826b5b Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 02:26:30 +0200 Subject: Upgrading to IUP 3.2 - and cleaning up. --- iup/srclua5/il_cells.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'iup/srclua5/il_cells.c') diff --git a/iup/srclua5/il_cells.c b/iup/srclua5/il_cells.c index 15ce5c9..ed0a368 100755 --- a/iup/srclua5/il_cells.c +++ b/iup/srclua5/il_cells.c @@ -16,17 +16,17 @@ static int cells_width_cb(Ihandle *self, int p0) { lua_State *L = iuplua_call_start(self, "width_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); return iuplua_call(L, 1); } static int cells_mousemotion_cb(Ihandle *self, int p0, int p1, int p2, int p3, char * p4) { lua_State *L = iuplua_call_start(self, "mousemotion_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); - lua_pushnumber(L, p2); - lua_pushnumber(L, p3); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); + lua_pushinteger(L, p2); + lua_pushinteger(L, p3); lua_pushstring(L, p4); return iuplua_call(L, 5); } @@ -34,12 +34,12 @@ static int cells_mousemotion_cb(Ihandle *self, int p0, int p1, int p2, int p3, c static int cells_mouseclick_cb(Ihandle *self, int p0, int p1, int p2, int p3, int p4, int p5, char * p6) { lua_State *L = iuplua_call_start(self, "mouseclick_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); - lua_pushnumber(L, p2); - lua_pushnumber(L, p3); - lua_pushnumber(L, p4); - lua_pushnumber(L, p5); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); + lua_pushinteger(L, p2); + lua_pushinteger(L, p3); + lua_pushinteger(L, p4); + lua_pushinteger(L, p5); lua_pushstring(L, p6); return iuplua_call(L, 7); } @@ -59,31 +59,31 @@ static int cells_nlines_cb(Ihandle *self) static int cells_scrolling_cb(Ihandle *self, int p0, int p1) { lua_State *L = iuplua_call_start(self, "scrolling_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); return iuplua_call(L, 2); } static int cells_height_cb(Ihandle *self, int p0) { lua_State *L = iuplua_call_start(self, "height_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); return iuplua_call(L, 1); } static int cells_hspan_cb(Ihandle *self, int p0, int p1) { lua_State *L = iuplua_call_start(self, "hspan_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); return iuplua_call(L, 2); } static int cells_vspan_cb(Ihandle *self, int p0, int p1) { lua_State *L = iuplua_call_start(self, "vspan_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); return iuplua_call(L, 2); } -- cgit v1.2.3