diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-18 17:27:38 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-18 17:27:38 -0200 |
| commit | 73664eb7399655e7cf65132c91a1aa16191a1667 (patch) | |
| tree | 733f88cc9444c2563989a1dd404c62c617dee926 /table.c | |
| parent | feed56a01ccb9ca99271e0feca79f71aa5c38f8e (diff) | |
| download | lua-73664eb7399655e7cf65132c91a1aa16191a1667.tar.gz lua-73664eb7399655e7cf65132c91a1aa16191a1667.tar.bz2 lua-73664eb7399655e7cf65132c91a1aa16191a1667.zip | |
function 'lua_createstring' moved from table.c to tree.c
Diffstat (limited to 'table.c')
| -rw-r--r-- | table.c | 12 |
1 files changed, 1 insertions, 11 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.19 1994/11/16 17:39:16 roberto Exp $"; | 6 | char *rcs_table="$Id: table.c,v 2.20 1994/11/17 13:58:57 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <string.h> | 8 | #include <string.h> |
| 9 | 9 | ||
| @@ -180,16 +180,6 @@ void lua_pack (void) | |||
| 180 | 180 | ||
| 181 | 181 | ||
| 182 | /* | 182 | /* |
| 183 | ** If the string isn't allocated, allocate a new string at string tree. | ||
| 184 | */ | ||
| 185 | char *lua_createstring (char *s) | ||
| 186 | { | ||
| 187 | if (s == NULL) return NULL; | ||
| 188 | return lua_strcreate(s); | ||
| 189 | } | ||
| 190 | |||
| 191 | |||
| 192 | /* | ||
| 193 | ** Add a file name at file table, checking overflow. This function also set | 183 | ** Add a file name at file table, checking overflow. This function also set |
| 194 | ** the external variable "lua_filename" with the function filename set. | 184 | ** the external variable "lua_filename" with the function filename set. |
| 195 | ** Return 0 on success or error message on error. | 185 | ** Return 0 on success or error message on error. |
