Browse Source

fix lua build flags to include zenroom and milagro

needed for the wipe done on lua strings
master
Jaromil 4 years ago
parent
commit
06d6a91a1b
  1. 5
      TODO.md
  2. 2
      build/config.mk
  3. 5
      lib/lua53/src/lstate.c

5
TODO.md

@ -18,6 +18,11 @@ check the type and reposition the arguments accordingly.
- https://github.com/Phrogz/SLAXML (also supports DOM)
- https://github.com/manoelcampos/xml2lua
## memory managers
- https://github.com/emeryberger/Malloc-Implementations
- ftp://gee.cs.oswego.edu/pub/misc/malloc.c excellent
- google perftools
## Table iteration

2
build/config.mk

@ -9,7 +9,7 @@ website := ${pwd}/docs/website/docs
luasrc := ${pwd}/lib/lua53/src
ldadd := ${pwd}/lib/lua53/src/liblua.a
lua_embed_opts := ""
lua_cflags := -DLUA_COMPAT_5_3 -DLUA_COMPAT_MODULE -DLUA_COMPAT_BITLIB
lua_cflags := -DLUA_COMPAT_5_3 -DLUA_COMPAT_MODULE -DLUA_COMPAT_BITLIB -I../../milagro-crypto-c/include -I../../../src
# ----------------
# zenroom defaults

5
lib/lua53/src/lstate.c

@ -269,9 +269,8 @@ void luaE_freethread (lua_State *L, lua_State *L1) {
luaM_free(L, l);
}
#include "../../milagro-crypto-c/include/amcl.h"
#include "../../../src/zenroom.h"
#include <amcl.h>
#include <zenroom.h>
extern zenroom_t *Z;
LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {

Loading…
Cancel
Save