diff options
author | niemeyer <devnull@localhost> | 2004-03-24 19:47:11 +0000 |
---|---|---|
committer | niemeyer <devnull@localhost> | 2004-03-24 19:47:11 +0000 |
commit | c096a690b819a14072d9465fe91cfe349a3e9214 (patch) | |
tree | 9a5f7550f2500801b95fb036a4ff7e4d8e339f00 /rpmio/macro.c | |
parent | 47d16168ca1f3793a0a0e822763992d3a0356418 (diff) | |
download | librpm-tizen-c096a690b819a14072d9465fe91cfe349a3e9214.tar.gz librpm-tizen-c096a690b819a14072d9465fe91cfe349a3e9214.tar.bz2 librpm-tizen-c096a690b819a14072d9465fe91cfe349a3e9214.zip |
- Now Lua interface is using a global state.
- /usr/lib/rpm/init.lua is called during intialization.
CVS patchset: 7188
CVS date: 2004/03/24 19:47:11
Diffstat (limited to 'rpmio/macro.c')
-rw-r--r-- | rpmio/macro.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c index 8c7a5170e..13172b1df 100644 --- a/rpmio/macro.c +++ b/rpmio/macro.c @@ -1366,7 +1366,7 @@ expandMacro(MacroBuf mb) } if (STREQ("lua", f, fn)) { - rpmlua lua = rpmluaNew(); + rpmlua lua = NULL; /* Global state. */ const char *ls = s+sizeof("{lua:")-1; const char *lse = se-sizeof("}")+1; char *scriptbuf = (char *)xmalloc((lse-ls)+1); @@ -1385,8 +1385,8 @@ expandMacro(MacroBuf mb) mb->t += len; mb->nb -= len; } + rpmluaSetPrintBuffer(lua, 0); free(scriptbuf); - lua = rpmluaFree(lua); s = se; continue; } |