Browse Source

fix lua build flags to include zenroom and milagro

needed for the wipe done on lua strings
master
Jaromil 1 year ago
parent
commit
06d6a91a1b
3 changed files with 8 additions and 4 deletions
  1. +5
    -0
      TODO.md
  2. +1
    -1
      build/config.mk
  3. +2
    -3
      lib/lua53/src/lstate.c

+ 5
- 0
TODO.md View File

@@ -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



+ 1
- 1
build/config.mk View File

@@ -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


+ 2
- 3
lib/lua53/src/lstate.c View File

@@ -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