From 8e84d4a3df8ae03104d61af27713a0924d9c228f Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 7 Aug 2013 19:56:34 +0200 Subject: Cleaning up types a bit. --- src/LuaHandle.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/LuaHandle.cc') diff --git a/src/LuaHandle.cc b/src/LuaHandle.cc index a1dd93d..6fb8d44 100644 --- a/src/LuaHandle.cc +++ b/src/LuaHandle.cc @@ -1,6 +1,9 @@ #include "LuaHandle.h" #include "Handle.h" +typedef Balau::IO IOHandle; +typedef IOHandle IOInput; + // Handle exports enum IOHandle_methods_t { @@ -13,10 +16,10 @@ struct Balau::lua_functypes_t IOHandle_methods[] = { }; struct sLua_IOHandle { - static int IOHandle_proceed(Balau::Lua & L, int n, Balau::IOHandle * obj, int caller); + static int IOHandle_proceed(Balau::Lua & L, int n, IOHandle * obj, int caller); }; -int sLua_IOHandle::IOHandle_proceed(Balau::Lua & L, int n, Balau::IOHandle * obj, int caller) { +int sLua_IOHandle::IOHandle_proceed(Balau::Lua & L, int n, IOHandle * obj, int caller) { int r = 0; Balau::IO h = *obj; @@ -64,7 +67,7 @@ struct Balau::lua_functypes_t IOInput_methods[] = { struct sLua_IOInput { static int IOInput_proceed_static(Balau::Lua & L, int n, int caller); - static int IOInput_proceed(Balau::Lua & L, int n, Balau::IOHandle * obj, int caller); + static int IOInput_proceed(Balau::Lua & L, int n, IOHandle * obj, int caller); }; int sLua_IOInput::IOInput_proceed_static(Balau::Lua & L, int n, int caller) { @@ -83,7 +86,7 @@ int sLua_IOInput::IOInput_proceed_static(Balau::Lua & L, int n, int caller) { return r; } -int sLua_IOInput::IOInput_proceed(Balau::Lua & L, int n, Balau::IOHandle * obj, int caller) { +int sLua_IOInput::IOInput_proceed(Balau::Lua & L, int n, IOInput * obj, int caller) { int r; Balau::IO h = *obj; -- cgit v1.2.3