diff options
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -158,8 +158,13 @@ typedef union StackValue { | |||
158 | typedef StackValue *StkId; | 158 | typedef StackValue *StkId; |
159 | 159 | ||
160 | 160 | ||
161 | /* | ||
162 | ** When reallocating the stack, change all pointers to the stack into | ||
163 | ** proper offsets. | ||
164 | */ | ||
161 | typedef union { | 165 | typedef union { |
162 | StkId p; /* actual pointer */ | 166 | StkId p; /* actual pointer */ |
167 | ptrdiff_t offset; /* used while the stack is being reallocated */ | ||
163 | } StkIdRel; | 168 | } StkIdRel; |
164 | 169 | ||
165 | 170 | ||
@@ -626,6 +631,7 @@ typedef struct UpVal { | |||
626 | lu_byte tbc; /* true if it represents a to-be-closed variable */ | 631 | lu_byte tbc; /* true if it represents a to-be-closed variable */ |
627 | union { | 632 | union { |
628 | TValue *p; /* points to stack or to its own value */ | 633 | TValue *p; /* points to stack or to its own value */ |
634 | ptrdiff_t offset; /* used while the stack is being reallocated */ | ||
629 | } v; | 635 | } v; |
630 | union { | 636 | union { |
631 | struct { /* (when open) */ | 637 | struct { /* (when open) */ |