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 /table.c | |
| 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 'table.c')
| -rw-r--r-- | table.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** Module to control static tables | 3 | ** Module to control static tables |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_table="$Id: table.c,v 2.25 1994/12/20 21:20:36 roberto Exp roberto $"; | 6 | char *rcs_table="$Id: table.c,v 2.26 1995/01/12 14:19:04 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <string.h> | 8 | #include <string.h> |
| 9 | 9 | ||
| @@ -197,7 +197,7 @@ char *lua_addfile (char *fn) | |||
| 197 | { | 197 | { |
| 198 | if (lua_nfile >= MAXFILE) | 198 | if (lua_nfile >= MAXFILE) |
| 199 | return "too many files"; | 199 | return "too many files"; |
| 200 | if ((lua_file[lua_nfile++] = strdup (fn)) == NULL) | 200 | if ((lua_file[lua_nfile++] = luaI_strdup (fn)) == NULL) |
| 201 | return "not enough memory"; | 201 | return "not enough memory"; |
| 202 | return NULL; | 202 | return NULL; |
| 203 | } | 203 | } |
