summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-07 19:56:34 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-07 19:56:34 +0200
commit8e84d4a3df8ae03104d61af27713a0924d9c228f (patch)
treeb738a642b90e9ef85b422b029f85dd269f525f1c
parent4ac6cc16fd54c12161b131e3b9bab0ac17dc4d01 (diff)
Cleaning up types a bit.
-rw-r--r--includes/LuaHandle.h3
-rw-r--r--src/LuaHandle.cc11
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;