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

@ -11,18 +11,12 @@
#define loadlib_c
#define LUA_LIB
#include "lprefix.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.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 */
/*
** LUA_IGMARK is a mark to ignore all before it when building the
@ -111,7 +105,6 @@ static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym);
** =========================================================================
*/
#include <dlfcn.h>
/*
** Macro to convert pointer-to-void* to pointer-to-function. This cast
@ -154,7 +147,6 @@ static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) {
** =======================================================================
*/
#include <windows.h>
/*