diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-01-14 13:40:26 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-01-14 13:40:26 -0200 |
commit | f4591397da8444d1917a67a34cb6a6ac8137385e (patch) | |
tree | 749a23af6964bee4a373aecf13f3cdfcda8656f0 /lua.stx | |
parent | 8faf4d1de2cbda61ae871fc23091deff3672e0fc (diff) | |
download | lua-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.stx | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ | |||
1 | %{ | 1 | %{ |
2 | 2 | ||
3 | char *rcs_luastx = "$Id: lua.stx,v 3.15 1994/12/27 20:04:29 celes Exp celes $"; | 3 | char *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 | } |