Get Lua to build with all tests passing

Fixes #61
This commit is contained in:
Justine Tunney 2021-03-07 13:26:57 -08:00
parent 4d3195f57a
commit b16b332539
70 changed files with 532 additions and 1047 deletions

View file

@ -7,20 +7,20 @@
#define loslib_c
#define LUA_LIB
#include "lprefix.h"
#include <errno.h>
#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include "libc/calls/calls.h"
#include "libc/calls/weirdtypes.h"
#include "libc/errno.h"
#include "libc/stdio/temp.h"
#include "libc/sysv/consts/exit.h"
#include "libc/time/struct/tm.h"
#include "libc/time/time.h"
#include "libc/unicode/locale.h"
#include "third_party/lua/lauxlib.h"
#include "third_party/lua/lprefix.h"
#include "third_party/lua/lua.h"
#include "third_party/lua/lualib.h"
/* clang-format off */
/*
** {==================================================================
@ -112,8 +112,6 @@
#if defined(LUA_USE_POSIX) /* { */
#include <unistd.h>
#define LUA_TMPNAMBUFSIZE 32
#if !defined(LUA_TMPNAMTEMPLATE)