shithub: lu9-lua

Download patch

ref: 836fb511e9ada628af2b536e050ec4f7603a9eeb
parent: 8b4a3db418e246dc07abd839776df99dfc38498d
author: kvik <kvik@a-b.xyz>
date: Sat Feb 6 17:52:31 EST 2021

core: insert pragma incomplete where neccessary

--- a/llex.h
+++ b/llex.h
@@ -76,6 +76,7 @@
   TString *source;  /* current source name */
   TString *envn;  /* environment variable name */
 } LexState;
+#pragma incomplete LexState;
 
 
 LUAI_FUNC void luaX_init (lua_State *L);
--- a/lparser.h
+++ b/lparser.h
@@ -161,6 +161,7 @@
   lu_byte iwthabs;  /* instructions issued since last absolute line info */
   lu_byte needclose;  /* function needs to close upvalues when returning */
 } FuncState;
+#pragma incomplete FuncState;
 
 
 LUAI_FUNC int luaY_nvarstack (FuncState *fs);
--- a/lstate.h
+++ b/lstate.h
@@ -184,6 +184,7 @@
   short nresults;  /* expected number of results from this function */
   unsigned short callstatus;
 } CallInfo;
+#pragma incomplete CallInfo;
 
 
 /*
--- a/lua.h
+++ b/lua.h
@@ -55,6 +55,7 @@
 
 
 typedef struct lua_State lua_State;
+#pragma incomplete lua_State;
 
 
 /*