eris: get rid of hooks for luai_writestring.

This commit is contained in:
2021-10-21 13:49:28 -04:00
parent 1a25fed15f
commit 6a95f6deb5
4 changed files with 3 additions and 30 deletions

View File

@@ -210,8 +210,9 @@
** avoids including 'stdio.h' everywhere.)
*/
#if defined(LUA_LIB) || defined(lua_c)
extern void luai_writestring(const char *s, size_t len);
extern void luai_writeline();
#include <stdio.h>
#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
#define luai_writeline() (luai_writestring("\n", 1), fflush(stdout))
#endif
/*
@@ -221,7 +222,6 @@ extern void luai_writeline();
#define luai_writestringerror(s,p) \
(fprintf(stderr, (s), (p)), fflush(stderr))
/*
@@ LUAI_MAXSHORTLEN is the maximum length for short strings, that is,
** strings that are internalized. (Cannot be smaller than reserved words