diff options
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 | \*=========================================================================*/ |