From 38c611cff6d03383e111dd4c9c9f2c5f8dfc87d6 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 21 Aug 2021 16:44:02 +0200 Subject: Moved error handling and lua state out of buffer_prepare_at_least --- buffer.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'buffer.h') 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 - 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); -- cgit v1.1