From 867a86a9ab31c0652a46759443fc98a49f91c8dd Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 22 Feb 2024 10:17:40 -0600 Subject: cleaning and switch to parray_t --- src/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/io.c') diff --git a/src/io.c b/src/io.c index cc33a71..852d175 100644 --- a/src/io.c +++ b/src/io.c @@ -1,5 +1,5 @@ #include -#include "i_str.h" +#include "types/str.h" #include "io.h" #include "stdlib.h" #include "stdio.h" @@ -30,7 +30,7 @@ int l_readfile(lua_State* L){ char* out = calloc(sz + 1, sizeof * out); fread(out, sizeof * out, sz, fp); - + lua_pushlstring(L, out, sz); fclose(fp); -- cgit v1.2.3