diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-19 05:41:30 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-19 05:41:30 +0000 |
commit | 5b8d7dec541a618b4ca7f2205470a28cde2e3e25 (patch) | |
tree | 209ad0c80c9a938068401fc5b8fa51942972418f /src/luasocket.c | |
parent | 6ac82d50eecdf9bf55f4234ed3a5449afd7a2992 (diff) | |
download | luasocket-5b8d7dec541a618b4ca7f2205470a28cde2e3e25.tar.gz luasocket-5b8d7dec541a618b4ca7f2205470a28cde2e3e25.tar.bz2 luasocket-5b8d7dec541a618b4ca7f2205470a28cde2e3e25.zip |
Updated some of the callbacks in callback.lua.
Update get.lua to use the new callbacks.
The old "code" module is now the "mime" module.
Updated all modules that depended on it.
Updated url.lua to use the new namespace scheme, and moved the
escape and unescape functions that used to be in the code.lua module
to it, since these are specific to urls.
Updated the callback entries in the manual.
Diffstat (limited to 'src/luasocket.c')
-rw-r--r-- | src/luasocket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/luasocket.c b/src/luasocket.c index 8b30f4d..578d65c 100644 --- a/src/luasocket.c +++ b/src/luasocket.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include "tcp.h" | 33 | #include "tcp.h" |
34 | #include "udp.h" | 34 | #include "udp.h" |
35 | #include "select.h" | 35 | #include "select.h" |
36 | #include "code.h" | 36 | #include "mime.h" |
37 | 37 | ||
38 | /*=========================================================================*\ | 38 | /*=========================================================================*\ |
39 | * Exported functions | 39 | * Exported functions |
@@ -52,13 +52,13 @@ LUASOCKET_API int luaopen_socket(lua_State *L) | |||
52 | tcp_open(L); | 52 | tcp_open(L); |
53 | udp_open(L); | 53 | udp_open(L); |
54 | select_open(L); | 54 | select_open(L); |
55 | code_open(L); | 55 | mime_open(L); |
56 | #ifdef LUASOCKET_COMPILED | 56 | #ifdef LUASOCKET_COMPILED |
57 | #include "auxiliar.lch" | 57 | #include "auxiliar.lch" |
58 | #include "concat.lch" | 58 | #include "concat.lch" |
59 | #include "url.lch" | 59 | #include "url.lch" |
60 | #include "callback.lch" | 60 | #include "callback.lch" |
61 | #include "code.lch" | 61 | #include "mime.lch" |
62 | #include "smtp.lch" | 62 | #include "smtp.lch" |
63 | #include "ftp.lch" | 63 | #include "ftp.lch" |
64 | #include "http.lch" | 64 | #include "http.lch" |
@@ -67,7 +67,7 @@ LUASOCKET_API int luaopen_socket(lua_State *L) | |||
67 | lua_dofile(L, "concat.lua"); | 67 | lua_dofile(L, "concat.lua"); |
68 | lua_dofile(L, "url.lua"); | 68 | lua_dofile(L, "url.lua"); |
69 | lua_dofile(L, "callback.lua"); | 69 | lua_dofile(L, "callback.lua"); |
70 | lua_dofile(L, "code.lua"); | 70 | lua_dofile(L, "mime.lua"); |
71 | lua_dofile(L, "smtp.lua"); | 71 | lua_dofile(L, "smtp.lua"); |
72 | lua_dofile(L, "ftp.lua"); | 72 | lua_dofile(L, "ftp.lua"); |
73 | lua_dofile(L, "http.lua"); | 73 | lua_dofile(L, "http.lua"); |