about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/notes9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/notes b/src/notes
index ff25625..4a4487b 100644
--- a/src/notes
+++ b/src/notes
@@ -6,7 +6,14 @@ typedef struct LG {
 
 lua_State:
   &{Value; int tt} stack, stack_last, base, top
+  GCObject* next
+  byte tt  # type == THREAD
+
+initializing a lua_State (lua_newstate)
+  allocate space (including for globals)
+  next = NULL
+  stack = NULL
 
 == todo stack
-lua_newstate
+where are stack_last/base/top initialized?
 lua_State's stack