aboutsummaryrefslogtreecommitdiff
path: root/src/mime.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-28 06:16:43 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-28 06:16:43 +0000
commit694edcc3c1ac3041ff8cdd753a2f7894e8783e6c (patch)
treef8797b4c7671fbf9042fc011277d69d4c3549045 /src/mime.c
parentbf738a03368b8de9c574d9631f131c5a520acf7b (diff)
downloadluasocket-694edcc3c1ac3041ff8cdd753a2f7894e8783e6c.tar.gz
luasocket-694edcc3c1ac3041ff8cdd753a2f7894e8783e6c.tar.bz2
luasocket-694edcc3c1ac3041ff8cdd753a2f7894e8783e6c.zip
Committing with require.
Diffstat (limited to 'src/mime.c')
-rw-r--r--src/mime.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mime.c b/src/mime.c
index fe24f9b..7a2baae 100644
--- a/src/mime.c
+++ b/src/mime.c
@@ -74,15 +74,15 @@ static UC b64unbase[256];
74/*-------------------------------------------------------------------------*\ 74/*-------------------------------------------------------------------------*\
75* Initializes module 75* Initializes module
76\*-------------------------------------------------------------------------*/ 76\*-------------------------------------------------------------------------*/
77int mime_open(lua_State *L) 77int luaopen_mime(lua_State *L)
78{ 78{
79 lua_pushstring(L, "mime"); 79 lua_pushstring(L, MIME_LIBNAME);
80 lua_newtable(L); 80 lua_setglobal(L, "MIME_LIBNAME");
81 luaL_openlib(L, NULL, func, 0); 81 luaL_openlib(L, MIME_LIBNAME, func, 0);
82 lua_settable(L, LUA_GLOBALSINDEX);
83 /* initialize lookup tables */ 82 /* initialize lookup tables */
84 qpsetup(qpclass, qpunbase); 83 qpsetup(qpclass, qpunbase);
85 b64setup(b64unbase); 84 b64setup(b64unbase);
85 lua_pop(L, 1);
86 return 0; 86 return 0;
87} 87}
88 88