Skip to content

Commit 06d6a91

Browse files
committed
fix lua build flags to include zenroom and milagro
needed for the wipe done on lua strings
1 parent ea57b3b commit 06d6a91

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

TODO.md

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ check the type and reposition the arguments accordingly.
1818
- https://github.com/Phrogz/SLAXML (also supports DOM)
1919
- https://github.com/manoelcampos/xml2lua
2020

21+
## memory managers
22+
23+
- https://github.com/emeryberger/Malloc-Implementations
24+
- ftp://gee.cs.oswego.edu/pub/misc/malloc.c excellent
25+
- google perftools
2126

2227
## Table iteration
2328

build/config.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ website := ${pwd}/docs/website/docs
99
luasrc := ${pwd}/lib/lua53/src
1010
ldadd := ${pwd}/lib/lua53/src/liblua.a
1111
lua_embed_opts := ""
12-
lua_cflags := -DLUA_COMPAT_5_3 -DLUA_COMPAT_MODULE -DLUA_COMPAT_BITLIB
12+
lua_cflags := -DLUA_COMPAT_5_3 -DLUA_COMPAT_MODULE -DLUA_COMPAT_BITLIB -I../../milagro-crypto-c/include -I../../../src
1313

1414
# ----------------
1515
# zenroom defaults

lib/lua53/src/lstate.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,8 @@ void luaE_freethread (lua_State *L, lua_State *L1) {
269269
luaM_free(L, l);
270270
}
271271

272-
#include "../../milagro-crypto-c/include/amcl.h"
273-
#include "../../../src/zenroom.h"
274-
272+
#include <amcl.h>
273+
#include <zenroom.h>
275274
extern zenroom_t *Z;
276275

277276
LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {

0 commit comments

Comments
 (0)