diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-17 00:18:48 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-17 00:18:48 +0000 |
| commit | 80b7acea2eb19f7facddce17733b88cb50a56cea (patch) | |
| tree | 3b2354627dd2a178e0a66f3c9ab2181405381aec /src/luasocket.c | |
| parent | 27c8ae30aaef25d537669062d5f7f929eec18032 (diff) | |
| download | luasocket-80b7acea2eb19f7facddce17733b88cb50a56cea.tar.gz luasocket-80b7acea2eb19f7facddce17733b88cb50a56cea.tar.bz2 luasocket-80b7acea2eb19f7facddce17733b88cb50a56cea.zip | |
Compiled and tested on Windows...
Diffstat (limited to 'src/luasocket.c')
| -rw-r--r-- | src/luasocket.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/luasocket.c b/src/luasocket.c index 2b0a1fa..6f7debe 100644 --- a/src/luasocket.c +++ b/src/luasocket.c | |||
| @@ -87,13 +87,6 @@ static int base_open(lua_State *L) { | |||
| 87 | /* whoever is loading the library replaced the global environment | 87 | /* whoever is loading the library replaced the global environment |
| 88 | * with the namespace table */ | 88 | * with the namespace table */ |
| 89 | lua_pushvalue(L, LUA_GLOBALSINDEX); | 89 | lua_pushvalue(L, LUA_GLOBALSINDEX); |
| 90 | /* make sure library is still "requirable" if initialized staticaly */ | ||
| 91 | lua_pushstring(L, "_LOADEDLIB"); | ||
| 92 | lua_gettable(L, -2); | ||
| 93 | lua_pushstring(L, LUASOCKET_LIBNAME); | ||
| 94 | lua_pushcfunction(L, (lua_CFunction) luaopen_socket); | ||
| 95 | lua_settable(L, -3); | ||
| 96 | lua_pop(L, 1); | ||
| 97 | #ifdef LUASOCKET_DEBUG | 90 | #ifdef LUASOCKET_DEBUG |
| 98 | lua_pushstring(L, "DEBUG"); | 91 | lua_pushstring(L, "DEBUG"); |
| 99 | lua_pushboolean(L, 1); | 92 | lua_pushboolean(L, 1); |
