diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-07 19:56:34 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-07 19:56:34 +0200 |
commit | 8e84d4a3df8ae03104d61af27713a0924d9c228f (patch) | |
tree | b738a642b90e9ef85b422b029f85dd269f525f1c | |
parent | 4ac6cc16fd54c12161b131e3b9bab0ac17dc4d01 (diff) |
Cleaning up types a bit.
-rw-r--r-- | includes/LuaHandle.h | 3 | ||||
-rw-r--r-- | src/LuaHandle.cc | 11 |
2 files changed, 7 insertions, 7 deletions
diff --git a/includes/LuaHandle.h b/includes/LuaHandle.h index ab165ee..fcde496 100644 --- a/includes/LuaHandle.h +++ b/includes/LuaHandle.h @@ -6,9 +6,6 @@ namespace Balau { -typedef IO<Handle> IOHandle; -typedef IOHandle IOInput; - class LuaHandleFactory : public LuaObjectFactory { public: LuaHandleFactory(IO<Handle> h) : m_obj(new IO<Handle>(h)) { } 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<Balau::Handle> 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<Balau::Handle> 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<Balau::Input> h = *obj; |