diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-02-11 03:31:53 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-02-11 03:31:53 +0000 |
commit | 390846b640ee7013d51a766b4b2472bdcfbbdfcc (patch) | |
tree | 3bedd023a0a84feb714615245b58eab5ffb4309b /src/luasocket.c | |
parent | 0b2542d1a61fc5425ff65ab3dbf7ba7de174763f (diff) | |
download | luasocket-390846b640ee7013d51a766b4b2472bdcfbbdfcc.tar.gz luasocket-390846b640ee7013d51a766b4b2472bdcfbbdfcc.tar.bz2 luasocket-390846b640ee7013d51a766b4b2472bdcfbbdfcc.zip |
Added ltn12 module. Modified mime to be stand alone.
Still crashes on invalid input. Dunno why.
Diffstat (limited to 'src/luasocket.c')
-rw-r--r-- | src/luasocket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/luasocket.c b/src/luasocket.c index e99fcdf..47696cb 100644 --- a/src/luasocket.c +++ b/src/luasocket.c | |||
@@ -72,6 +72,7 @@ static int mod_open(lua_State *L, const luaL_reg *mod) | |||
72 | { | 72 | { |
73 | for (; mod->name; mod++) mod->func(L); | 73 | for (; mod->name; mod++) mod->func(L); |
74 | #ifdef LUASOCKET_COMPILED | 74 | #ifdef LUASOCKET_COMPILED |
75 | #include "ltn12.lch" | ||
75 | #include "auxiliar.lch" | 76 | #include "auxiliar.lch" |
76 | #include "concat.lch" | 77 | #include "concat.lch" |
77 | #include "url.lch" | 78 | #include "url.lch" |
@@ -81,6 +82,7 @@ static int mod_open(lua_State *L, const luaL_reg *mod) | |||
81 | #include "ftp.lch" | 82 | #include "ftp.lch" |
82 | #include "http.lch" | 83 | #include "http.lch" |
83 | #else | 84 | #else |
85 | lua_dofile(L, "ltn12.lua"); | ||
84 | lua_dofile(L, "auxiliar.lua"); | 86 | lua_dofile(L, "auxiliar.lua"); |
85 | lua_dofile(L, "concat.lua"); | 87 | lua_dofile(L, "concat.lua"); |
86 | lua_dofile(L, "url.lua"); | 88 | lua_dofile(L, "url.lua"); |