diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 14:18:20 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 14:18:20 -0700 |
commit | 4b671f4551e98ac9e1d9a7407d3dffdd7eb1d3dc (patch) | |
tree | ba92aa753ae1b145760cb1c5e69c886d3bf11328 /src/unix.c | |
parent | f399ab25fcecad2ff96a5977e8eaf069bb45473c (diff) | |
parent | 195b2a74bb3f368b1f31f9c8bbc1ce0f54de2035 (diff) | |
download | luasocket-4b671f4551e98ac9e1d9a7407d3dffdd7eb1d3dc.tar.gz luasocket-4b671f4551e98ac9e1d9a7407d3dffdd7eb1d3dc.tar.bz2 luasocket-4b671f4551e98ac9e1d9a7407d3dffdd7eb1d3dc.zip |
Merge branch 'git-sam' into diego-sam-mwild-integration
Conflicts in options.c were just due to independent small functions
being close to each other.
unix.c in mwild was broken, it wasn't using LUASOCKET_API.
serial.c needed luaL_reg renamed, and to use LUASOCKET_API.
makefile didn't respect standard DESTDIR and prefix makefile
variables, and didn't allow LUAV variable to select lua version to build
against.
I've tested the top-level install-both target builds and installs
against both lua5.1 and lua5.2, but not done further testing.
Conflicts:
README
config
gem/ltn012.tex
makefile
src/makefile
src/options.c
src/options.h
src/tcp.c
src/usocket.c
Diffstat (limited to 'src/unix.c')
-rw-r--r-- | src/unix.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -39,7 +39,7 @@ static const char *unix_tryconnect(p_unix un, const char *path); | |||
39 | static const char *unix_trybind(p_unix un, const char *path); | 39 | static const char *unix_trybind(p_unix un, const char *path); |
40 | 40 | ||
41 | /* unix object methods */ | 41 | /* unix object methods */ |
42 | static luaL_Reg un[] = { | 42 | static luaL_Reg unix_methods[] = { |
43 | {"__gc", meth_close}, | 43 | {"__gc", meth_close}, |
44 | {"__tostring", auxiliar_tostring}, | 44 | {"__tostring", auxiliar_tostring}, |
45 | {"accept", meth_accept}, | 45 | {"accept", meth_accept}, |
@@ -82,9 +82,9 @@ static luaL_Reg func[] = { | |||
82 | \*-------------------------------------------------------------------------*/ | 82 | \*-------------------------------------------------------------------------*/ |
83 | int luaopen_socket_unix(lua_State *L) { | 83 | int luaopen_socket_unix(lua_State *L) { |
84 | /* create classes */ | 84 | /* create classes */ |
85 | auxiliar_newclass(L, "unix{master}", un); | 85 | auxiliar_newclass(L, "unix{master}", unix_methods); |
86 | auxiliar_newclass(L, "unix{client}", un); | 86 | auxiliar_newclass(L, "unix{client}", unix_methods); |
87 | auxiliar_newclass(L, "unix{server}", un); | 87 | auxiliar_newclass(L, "unix{server}", unix_methods); |
88 | /* create class groups */ | 88 | /* create class groups */ |
89 | auxiliar_add2group(L, "unix{master}", "unix{any}"); | 89 | auxiliar_add2group(L, "unix{master}", "unix{any}"); |
90 | auxiliar_add2group(L, "unix{client}", "unix{any}"); | 90 | auxiliar_add2group(L, "unix{client}", "unix{any}"); |