aboutsummaryrefslogtreecommitdiff
path: root/src/mime.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-04 15:15:45 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-04 15:15:45 +0000
commit9ed7f955e5fc69af9bf1794fa2c8cd227981ba24 (patch)
tree8c3521366ef84f534bbec278437be7ea24e2ac1c /src/mime.c
parent63d60223da9de60f873ca08a25dbd9512c998929 (diff)
downloadluasocket-9ed7f955e5fc69af9bf1794fa2c8cd227981ba24.tar.gz
luasocket-9ed7f955e5fc69af9bf1794fa2c8cd227981ba24.tar.bz2
luasocket-9ed7f955e5fc69af9bf1794fa2c8cd227981ba24.zip
Só pra não perder se der merda.
Diffstat (limited to 'src/mime.c')
-rw-r--r--src/mime.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mime.c b/src/mime.c
index 966509b..f42528c 100644
--- a/src/mime.c
+++ b/src/mime.c
@@ -76,9 +76,8 @@ static UC b64unbase[256];
76\*-------------------------------------------------------------------------*/ 76\*-------------------------------------------------------------------------*/
77MIME_API int luaopen_mime(lua_State *L) 77MIME_API int luaopen_mime(lua_State *L)
78{ 78{
79 lua_pushstring(L, MIME_LIBNAME); 79 lua_newtable(L);
80 lua_setglobal(L, "MIME_LIBNAME"); 80 luaL_openlib(L, NULL, func, 0);
81 luaL_openlib(L, MIME_LIBNAME, func, 0);
82 /* initialize lookup tables */ 81 /* initialize lookup tables */
83 qpsetup(qpclass, qpunbase); 82 qpsetup(qpclass, qpunbase);
84 b64setup(b64unbase); 83 b64setup(b64unbase);
@@ -626,7 +625,6 @@ static int eolprocess(int c, int last, const char *marker,
626 luaL_putchar(buffer, c); 625 luaL_putchar(buffer, c);
627 return 0; 626 return 0;
628 } 627 }
629
630} 628}
631 629
632/*-------------------------------------------------------------------------*\ 630/*-------------------------------------------------------------------------*\