diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-07 15:39:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-07 15:39:16 -0300 |
commit | 397905ef8694ec716a51acebc993bb625340d388 (patch) | |
tree | cbf37aa8278b53161f99f28a027ac703c227ec27 /lstate.h | |
parent | 435f587ed05e2c4d542e1db9ae9e4efbb7e02305 (diff) | |
download | lua-397905ef8694ec716a51acebc993bb625340d388.tar.gz lua-397905ef8694ec716a51acebc993bb625340d388.tar.bz2 lua-397905ef8694ec716a51acebc993bb625340d388.zip |
(much) better handling of memory alloction errors
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 1.33 2000/05/10 16:33:20 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.34 2000/05/24 13:54:49 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -19,11 +19,14 @@ typedef TObject *StkId; /* index to stack elements */ | |||
19 | 19 | ||
20 | 20 | ||
21 | /* | 21 | /* |
22 | ** `jmp_buf' may be an array, so it is better to make sure it has an | 22 | ** chain list of long jumps |
23 | ** address (and not that it *is* an address...) | ||
24 | */ | 23 | */ |
25 | struct lua_longjmp { | 24 | struct lua_longjmp { |
26 | jmp_buf b; | 25 | jmp_buf b; |
26 | struct lua_longjmp *previous; | ||
27 | volatile int status; /* error code */ | ||
28 | StkId base; | ||
29 | int numCblocks; | ||
27 | }; | 30 | }; |
28 | 31 | ||
29 | 32 | ||