summaryrefslogtreecommitdiffhomepage
path: root/buffer.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-08-21 16:14:30 +0200
committerAki <please@ignore.pl>2021-08-21 16:14:30 +0200
commit6cefc948d37cd856d23caf00970ad3565672b016 (patch)
treebe3b0f370724d9d30a21b4fa72ab6b349b0777c9 /buffer.h
parentf41138949b4fb13331391cf3d7570d38f04a2ce8 (diff)
downloadplop-6cefc948d37cd856d23caf00970ad3565672b016.zip
plop-6cefc948d37cd856d23caf00970ad3565672b016.tar.gz
plop-6cefc948d37cd856d23caf00970ad3565672b016.tar.bz2
Removed stream dependency from buffer
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/buffer.h b/buffer.h
index d4fafa6..66f8f02 100644
--- a/buffer.h
+++ b/buffer.h
@@ -2,8 +2,6 @@
#include <lua.h>
-struct stream; // TODO: Remove buffer to stream dependency.
-
struct buffer
{
char * data;
@@ -14,6 +12,6 @@ struct buffer
};
void grow(lua_State *, struct buffer *);
-int prepare_at_least(lua_State *, struct stream *, const int, lua_KContext);
-int read_more(lua_State *, struct stream *, const int, lua_KContext);
+int read_more(lua_State *, const int, struct buffer *, const int, lua_KContext);
+int prepare_at_least(lua_State *, const int, struct buffer *, const int, lua_KContext);
int until(struct buffer *, const char *, const int);