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/mime.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/mime.c')
-rw-r--r-- | src/mime.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -79,13 +79,6 @@ MIME_API int luaopen_mime(lua_State *L) | |||
79 | /* whoever is loading the library replaced the global environment | 79 | /* whoever is loading the library replaced the global environment |
80 | * with the namespace table */ | 80 | * with the namespace table */ |
81 | lua_pushvalue(L, LUA_GLOBALSINDEX); | 81 | lua_pushvalue(L, LUA_GLOBALSINDEX); |
82 | /* make sure library is still "requirable" if initialized staticaly */ | ||
83 | lua_pushstring(L, "_LOADEDLIB"); | ||
84 | lua_gettable(L, -2); | ||
85 | lua_pushstring(L, MIME_LIBNAME); | ||
86 | lua_pushcfunction(L, (lua_CFunction) luaopen_mime); | ||
87 | lua_settable(L, -3); | ||
88 | lua_pop(L, 1); | ||
89 | /* export functions */ | 82 | /* export functions */ |
90 | luaL_openlib(L, NULL, func, 0); | 83 | luaL_openlib(L, NULL, func, 0); |
91 | /* initialize lookup tables */ | 84 | /* initialize lookup tables */ |