diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-01-30 11:41:39 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-01-30 11:41:39 -0300 |
| commit | d1e677c52be3b107a7a29fdc482158f6d9251e79 (patch) | |
| tree | 6b201f229a9dc1f0752f6544b71498a4d528941d /lstring.c | |
| parent | f7439112a5469078ac4f444106242cf1c1d3fe8a (diff) | |
| download | lua-d1e677c52be3b107a7a29fdc482158f6d9251e79.tar.gz lua-d1e677c52be3b107a7a29fdc482158f6d9251e79.tar.bz2 lua-d1e677c52be3b107a7a29fdc482158f6d9251e79.zip | |
New type 'TStatus' for thread status/error codes
Diffstat (limited to 'lstring.c')
| -rw-r--r-- | lstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -329,7 +329,7 @@ TString *luaS_newextlstr (lua_State *L, | |||
| 329 | if (!falloc) | 329 | if (!falloc) |
| 330 | f_pintern(L, &ne); /* just internalize string */ | 330 | f_pintern(L, &ne); /* just internalize string */ |
| 331 | else { | 331 | else { |
| 332 | int status = luaD_rawrunprotected(L, f_pintern, &ne); | 332 | TStatus status = luaD_rawrunprotected(L, f_pintern, &ne); |
| 333 | (*falloc)(ud, cast_voidp(s), len + 1, 0); /* free external string */ | 333 | (*falloc)(ud, cast_voidp(s), len + 1, 0); /* free external string */ |
| 334 | if (status != LUA_OK) /* memory error? */ | 334 | if (status != LUA_OK) /* memory error? */ |
| 335 | luaM_error(L); /* re-raise memory error */ | 335 | luaM_error(L); /* re-raise memory error */ |
