diff options
author | Aki <please@ignore.pl> | 2021-08-21 16:14:30 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-08-21 16:14:30 +0200 |
commit | 6cefc948d37cd856d23caf00970ad3565672b016 (patch) | |
tree | be3b0f370724d9d30a21b4fa72ab6b349b0777c9 /buffer.h | |
parent | f41138949b4fb13331391cf3d7570d38f04a2ce8 (diff) | |
download | plop-6cefc948d37cd856d23caf00970ad3565672b016.zip plop-6cefc948d37cd856d23caf00970ad3565672b016.tar.gz plop-6cefc948d37cd856d23caf00970ad3565672b016.tar.bz2 |
Removed stream dependency from buffer
Diffstat (limited to 'buffer.h')
-rw-r--r-- | buffer.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); |