summaryrefslogtreecommitdiffhomepage
path: root/buffer.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-08-21 16:44:02 +0200
committerAki <please@ignore.pl>2021-08-21 16:44:02 +0200
commit38c611cff6d03383e111dd4c9c9f2c5f8dfc87d6 (patch)
tree57439eec383ce29988c7b486278752090266577f /buffer.h
parent506fa912f42d31fd1760d9b3b9f3fbcfe43da2be (diff)
downloadplop-38c611cff6d03383e111dd4c9c9f2c5f8dfc87d6.zip
plop-38c611cff6d03383e111dd4c9c9f2c5f8dfc87d6.tar.gz
plop-38c611cff6d03383e111dd4c9c9f2c5f8dfc87d6.tar.bz2
Moved error handling and lua state out of buffer_prepare_at_least
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/buffer.h b/buffer.h
index c051f2d..1a614ec 100644
--- a/buffer.h
+++ b/buffer.h
@@ -1,7 +1,5 @@
#pragma once
-#include <lua.h>
-
struct buffer
{
char * data;
@@ -13,5 +11,5 @@ struct buffer
int buffer_grow(struct buffer *);
int buffer_read_more(const int, struct buffer *, const int);
-int buffer_prepare_at_least(lua_State *, const int, struct buffer *, const int, lua_KContext);
+int buffer_prepare_at_least(const int, struct buffer *, const int);
int buffer_until(struct buffer *, const char *, const int);