diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-15 06:24:00 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-15 06:24:00 +0000 |
commit | 58096449c6044b7aade5cd41cfd71c6bec1d273d (patch) | |
tree | 1814ffebe89c4c2556d84f97f66db37a7e8b4554 /src/buffer.c | |
parent | 9ed7f955e5fc69af9bf1794fa2c8cd227981ba24 (diff) | |
download | luasocket-58096449c6044b7aade5cd41cfd71c6bec1d273d.tar.gz luasocket-58096449c6044b7aade5cd41cfd71c6bec1d273d.tar.bz2 luasocket-58096449c6044b7aade5cd41cfd71c6bec1d273d.zip |
Manual is almost done. HTTP is missing.
Implemented new distribution scheme.
Select is now purely C.
HTTP reimplemented seems faster dunno why.
LTN12 functions that coroutines fail gracefully.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index b771047..fd885a2 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
@@ -7,7 +7,6 @@ | |||
7 | #include <lua.h> | 7 | #include <lua.h> |
8 | #include <lauxlib.h> | 8 | #include <lauxlib.h> |
9 | 9 | ||
10 | #include "auxiliar.h" | ||
11 | #include "buffer.h" | 10 | #include "buffer.h" |
12 | 11 | ||
13 | /*=========================================================================*\ | 12 | /*=========================================================================*\ |
@@ -20,6 +19,14 @@ static int buf_get(p_buf buf, const char **data, size_t *count); | |||
20 | static void buf_skip(p_buf buf, size_t count); | 19 | static void buf_skip(p_buf buf, size_t count); |
21 | static int sendraw(p_buf buf, const char *data, size_t count, size_t *sent); | 20 | static int sendraw(p_buf buf, const char *data, size_t count, size_t *sent); |
22 | 21 | ||
22 | /* min and max macros */ | ||
23 | #ifndef MIN | ||
24 | #define MIN(x, y) ((x) < (y) ? x : y) | ||
25 | #endif | ||
26 | #ifndef MAX | ||
27 | #define MAX(x, y) ((x) > (y) ? x : y) | ||
28 | #endif | ||
29 | |||
23 | /*=========================================================================*\ | 30 | /*=========================================================================*\ |
24 | * Exported functions | 31 | * Exported functions |
25 | \*=========================================================================*/ | 32 | \*=========================================================================*/ |