aboutsummaryrefslogtreecommitdiff
path: root/lua.stx
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-01-14 13:40:26 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-01-14 13:40:26 -0200
commitf4591397da8444d1917a67a34cb6a6ac8137385e (patch)
tree749a23af6964bee4a373aecf13f3cdfcda8656f0 /lua.stx
parent8faf4d1de2cbda61ae871fc23091deff3672e0fc (diff)
downloadlua-f4591397da8444d1917a67a34cb6a6ac8137385e.tar.gz
lua-f4591397da8444d1917a67a34cb6a6ac8137385e.tar.bz2
lua-f4591397da8444d1917a67a34cb6a6ac8137385e.zip
strdup is done via mem.c to control its memory allocation
Diffstat (limited to 'lua.stx')
-rw-r--r--lua.stx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.stx b/lua.stx
index 451532d5..6a900944 100644
--- a/lua.stx
+++ b/lua.stx
@@ -1,6 +1,6 @@
1%{ 1%{
2 2
3char *rcs_luastx = "$Id: lua.stx,v 3.15 1994/12/27 20:04:29 celes Exp celes $"; 3char *rcs_luastx = "$Id: lua.stx,v 3.16 1994/12/27 20:41:11 celes Exp roberto $";
4 4
5#include <stdio.h> 5#include <stdio.h>
6#include <stdlib.h> 6#include <stdlib.h>
@@ -237,7 +237,7 @@ static void init_function (TreeNode *func)
237 if (lua_debug) 237 if (lua_debug)
238 { 238 {
239 code_byte(SETFUNCTION); 239 code_byte(SETFUNCTION);
240 code_code((Byte *)strdup(lua_file[lua_nfile-1])); 240 code_code((Byte *)luaI_strdup(lua_file[lua_nfile-1]));
241 code_word(luaI_findconstant(func)); 241 code_word(luaI_findconstant(func));
242 } 242 }
243} 243}