summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lobject.h b/lobject.h
index 7af7bd89..e7f58cbd 100644
--- a/lobject.h
+++ b/lobject.h
@@ -158,8 +158,13 @@ typedef union StackValue {
typedef StackValue *StkId;
+/*
+** When reallocating the stack, change all pointers to the stack into
+** proper offsets.
+*/
typedef union {
StkId p; /* actual pointer */
+ ptrdiff_t offset; /* used while the stack is being reallocated */
} StkIdRel;
@@ -626,6 +631,7 @@ typedef struct UpVal {
lu_byte tbc; /* true if it represents a to-be-closed variable */
union {
TValue *p; /* points to stack or to its own value */
+ ptrdiff_t offset; /* used while the stack is being reallocated */
} v;
union {
struct { /* (when open) */