diff options
author | aalatchm <aalatchm@jamailca.com> | 2011-03-22 18:27:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-22 20:58:39 +0000 |
commit | c70a7e8158bd81e1b56603ace0a91248e0c02a92 (patch) | |
tree | 5ab41b1f963b86369f95a9fc966f38d9beed9361 | |
parent | 0c244a4e12eb65cf72972bdf49b93366a174e9b8 (diff) | |
download | posixtz-c70a7e8158bd81e1b56603ace0a91248e0c02a92.tar.bz2 posixtz-c70a7e8158bd81e1b56603ace0a91248e0c02a92.tar.xz |
renamed Lua C module to posixtz.core
This is necessary in order to configure posixtz.lua with additional functions.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | lua-posixtz.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ LUALIBS := -llua -TARGETS := posixtz posixtz.so +TARGETS := posixtz core.so all: $(TARGETS) clean: @@ -9,6 +9,6 @@ clean: posixtz: main.c posixtz.c $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -posixtz.so: lua-posixtz.c posixtz.c +core.so: lua-posixtz.c posixtz.c $(CC) -fPIC $(CFLAGS) $(LDFLAGS) $(LUALIBS) -shared -o $@ $^ diff --git a/lua-posixtz.c b/lua-posixtz.c index 0754f97..a641ac6 100644 --- a/lua-posixtz.c +++ b/lua-posixtz.c @@ -20,7 +20,7 @@ static const luaL_reg R[] = }; -LUALIB_API int luaopen_posixtz(lua_State *L) +LUALIB_API int luaopen_posixtz_core(lua_State *L) { luaL_register(L,MYNAME,R); return 1; |