Terry Ellison bbeb09b695 Squashed updates do get Lua51 and Lua53 working (#3075)
-  Lots of minor but nasty bugfixes to get all tests to run clean
-  core lua and test suite fixes to allow luac -F to run cleanly against test suite
-  next tranch to get LFS working
-  luac.cross -a options plus fixes from feedback
-  UART fixes and lua.c merge
-  commit of wip prior to rebaselining against current dev
-  more tweaks
2020-06-09 22:26:52 +02:00

22 lines
407 B
C

#ifndef _OVERRIDE_STDIO_H_
#define _OVERRIDE_STDIO_H_
#include_next "stdio.h"
#ifdef __BUFSIZ__
# define BUFSIZ __BUFSIZ__
#else
# define BUFSIZ 1024
#endif
extern void output_redirect(const char *str, size_t l);
#define puts(s) output_redirect((s), strlen(s))
#define printf(...) do { \
char __printf_buf[BUFSIZ]; \
sprintf(__printf_buf, __VA_ARGS__); \
puts(__printf_buf); \
} while(0)
#endif