aboutsummaryrefslogtreecommitdiff
path: root/src/luasocket.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2005-10-07 04:40:59 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2005-10-07 04:40:59 +0000
commitf4dadea763c1959a27dead24df3ee6c54c209842 (patch)
treec13b294a8ca5438d59b60e3f5a25a4f7c1fc9a1b /src/luasocket.c
parent562d8cceb704a96a7b2f9acc4bc229ab9f5c6541 (diff)
downloadluasocket-f4dadea763c1959a27dead24df3ee6c54c209842.tar.gz
luasocket-f4dadea763c1959a27dead24df3ee6c54c209842.tar.bz2
luasocket-f4dadea763c1959a27dead24df3ee6c54c209842.zip
Before compiling on Windows.
Diffstat (limited to 'src/luasocket.c')
-rw-r--r--src/luasocket.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/luasocket.c b/src/luasocket.c
index 434b5b7..142aa95 100644
--- a/src/luasocket.c
+++ b/src/luasocket.c
@@ -48,10 +48,10 @@ static int base_open(lua_State *L);
48* Modules and functions 48* Modules and functions
49\*-------------------------------------------------------------------------*/ 49\*-------------------------------------------------------------------------*/
50static const luaL_reg mod[] = { 50static const luaL_reg mod[] = {
51 {"auxiliar", aux_open}, 51 {"auxiliar", auxiliar_open},
52 {"except", except_open}, 52 {"except", except_open},
53 {"timeout", tm_open}, 53 {"timeout", timeout_open},
54 {"buffer", buf_open}, 54 {"buffer", buffer_open},
55 {"inet", inet_open}, 55 {"inet", inet_open},
56 {"tcp", tcp_open}, 56 {"tcp", tcp_open},
57 {"udp", udp_open}, 57 {"udp", udp_open},
@@ -79,7 +79,7 @@ static int global_skip(lua_State *L) {
79\*-------------------------------------------------------------------------*/ 79\*-------------------------------------------------------------------------*/
80static int global_unload(lua_State *L) { 80static int global_unload(lua_State *L) {
81 (void) L; 81 (void) L;
82 sock_close(); 82 socket_close();
83 return 0; 83 return 0;
84} 84}
85 85
@@ -87,7 +87,7 @@ static int global_unload(lua_State *L) {
87* Setup basic stuff. 87* Setup basic stuff.
88\*-------------------------------------------------------------------------*/ 88\*-------------------------------------------------------------------------*/
89static int base_open(lua_State *L) { 89static int base_open(lua_State *L) {
90 if (sock_open()) { 90 if (socket_open()) {
91 /* export functions (and leave namespace table on top of stack) */ 91 /* export functions (and leave namespace table on top of stack) */
92 luaL_openlib(L, "socket", func, 0); 92 luaL_openlib(L, "socket", func, 0);
93#ifdef LUASOCKET_DEBUG 93#ifdef LUASOCKET_DEBUG