From bef35fcd16e9c1f17b43ed3001715d9d1af8a2a8 Mon Sep 17 00:00:00 2001 From: "Robert G. Jakabosky" Date: Sat, 26 Feb 2011 15:44:50 -0800 Subject: cleanup formatting of README. --- README.md | 12 ++++++------ src/pre_generated-git2.nobj.c | 11 ----------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 12429d1..3c76c09 100644 --- a/README.md +++ b/README.md @@ -8,21 +8,21 @@ Installing ### Install lua-git2: -curl -O "https://github.com/Neopallium/luagit2/raw/master/lua-git2-scm-0.rockspec" - -luarocks install lua-git2-scm-0.rockspec + curl -O "https://github.com/Neopallium/luagit2/raw/master/lua-git2-scm-0.rockspec" + + luarocks install lua-git2-scm-0.rockspec To re-generating the bindings ----------------------------- -You will need to install LuaNativeObjects and set the CMake variable USE_PRE_GENERATED_BINDINGS to FALSE. +You will need to install LuaNativeObjects and set the CMake variable `USE_PRE_GENERATED_BINDINGS` to FALSE. By default CMake will use the pre-generated bindings that are include in the project. Build Dependencies ------------------ -Optional dependency for re-generating Lua bindings from *.nobj.lua files: +Optional dependency for re-generating Lua bindings from `*.nobj.lua` files: -* [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects), this is the bindings generator used to convert the *.nobj.lua files into a native Lua module. +* [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects), this is the bindings generator used to convert the `*.nobj.lua` files into a native Lua module. diff --git a/src/pre_generated-git2.nobj.c b/src/pre_generated-git2.nobj.c index 0470d7d..701c861 100644 --- a/src/pre_generated-git2.nobj.c +++ b/src/pre_generated-git2.nobj.c @@ -394,13 +394,7 @@ static FUNC_UNUSED void *obj_udata_luacheck(lua_State *L, int _index, obj_type * static FUNC_UNUSED void *obj_udata_luadelete(lua_State *L, int _index, obj_type *type, int *flags) { void *obj; -#if OBJ_DATA_HIDDEN_METATABLE - obj_udata *ud = obj_udata_toobj(L, _index); - (void)type; - obj = ud->obj; -#else obj_udata *ud = obj_udata_luacheck_internal(L, _index, &(obj), type); -#endif *flags = ud->flags; /* null userdata. */ ud->obj = NULL; @@ -535,12 +529,7 @@ static FUNC_UNUSED void * obj_simple_udata_luacheck(lua_State *L, int _index, ob static FUNC_UNUSED void * obj_simple_udata_luadelete(lua_State *L, int _index, obj_type *type, int *flags) { void *obj; -#if OBJ_DATA_HIDDEN_METATABLE - obj = obj_simple_udata_toobj(L, _index); - (void)type; -#else obj = obj_simple_udata_luacheck(L, _index, type); -#endif *flags = OBJ_UDATA_FLAG_OWN; /* clear the metatable to invalidate userdata. */ lua_pushnil(L); -- cgit v1.2.1