|
@@ -46,7 +46,7 @@ const char lua_ident[] =
|
|
|
|
|
|
|
|
|
|
|
|
-static TValue *ICACHE_FLASH_ATTR index2adr (lua_State *L, int idx) {
|
|
|
+static TValue *index2adr (lua_State *L, int idx) {
|
|
|
if (idx > 0) {
|
|
|
TValue *o = L->base + (idx - 1);
|
|
|
api_check(L, idx <= L->ci->top - L->base);
|
|
@@ -77,7 +77,7 @@ static TValue *ICACHE_FLASH_ATTR index2adr (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-static Table *ICACHE_FLASH_ATTR getcurrenv (lua_State *L) {
|
|
|
+static Table *getcurrenv (lua_State *L) {
|
|
|
if (L->ci == L->base_ci) /* no enclosing function? */
|
|
|
return hvalue(gt(L)); /* use global table as environment */
|
|
|
else {
|
|
@@ -87,13 +87,13 @@ static Table *ICACHE_FLASH_ATTR getcurrenv (lua_State *L) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-void ICACHE_FLASH_ATTR luaA_pushobject (lua_State *L, const TValue *o) {
|
|
|
+void luaA_pushobject (lua_State *L, const TValue *o) {
|
|
|
setobj2s(L, L->top, o);
|
|
|
api_incr_top(L);
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_checkstack (lua_State *L, int size) {
|
|
|
+LUA_API int lua_checkstack (lua_State *L, int size) {
|
|
|
int res = 1;
|
|
|
lua_lock(L);
|
|
|
if (size > LUAI_MAXCSTACK || (L->top - L->base + size) > LUAI_MAXCSTACK)
|
|
@@ -108,7 +108,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_checkstack (lua_State *L, int size) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_xmove (lua_State *from, lua_State *to, int n) {
|
|
|
+LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) {
|
|
|
int i;
|
|
|
if (from == to) return;
|
|
|
lua_lock(to);
|
|
@@ -123,12 +123,12 @@ LUA_API void ICACHE_FLASH_ATTR lua_xmove (lua_State *from, lua_State *to, int n)
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_setlevel (lua_State *from, lua_State *to) {
|
|
|
+LUA_API void lua_setlevel (lua_State *from, lua_State *to) {
|
|
|
to->nCcalls = from->nCcalls;
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API lua_CFunction ICACHE_FLASH_ATTR lua_atpanic (lua_State *L, lua_CFunction panicf) {
|
|
|
+LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) {
|
|
|
lua_CFunction old;
|
|
|
lua_lock(L);
|
|
|
old = G(L)->panic;
|
|
@@ -138,7 +138,7 @@ LUA_API lua_CFunction ICACHE_FLASH_ATTR lua_atpanic (lua_State *L, lua_CFunction
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API lua_State *ICACHE_FLASH_ATTR lua_newthread (lua_State *L) {
|
|
|
+LUA_API lua_State *lua_newthread (lua_State *L) {
|
|
|
lua_State *L1;
|
|
|
lua_lock(L);
|
|
|
luaC_checkGC(L);
|
|
@@ -157,12 +157,12 @@ LUA_API lua_State *ICACHE_FLASH_ATTR lua_newthread (lua_State *L) {
|
|
|
*/
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_gettop (lua_State *L) {
|
|
|
+LUA_API int lua_gettop (lua_State *L) {
|
|
|
return cast_int(L->top - L->base);
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_settop (lua_State *L, int idx) {
|
|
|
+LUA_API void lua_settop (lua_State *L, int idx) {
|
|
|
lua_lock(L);
|
|
|
if (idx >= 0) {
|
|
|
api_check(L, idx <= L->stack_last - L->base);
|
|
@@ -178,7 +178,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_settop (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_remove (lua_State *L, int idx) {
|
|
|
+LUA_API void lua_remove (lua_State *L, int idx) {
|
|
|
StkId p;
|
|
|
lua_lock(L);
|
|
|
p = index2adr(L, idx);
|
|
@@ -189,7 +189,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_remove (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_insert (lua_State *L, int idx) {
|
|
|
+LUA_API void lua_insert (lua_State *L, int idx) {
|
|
|
StkId p;
|
|
|
StkId q;
|
|
|
lua_lock(L);
|
|
@@ -201,7 +201,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_insert (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_replace (lua_State *L, int idx) {
|
|
|
+LUA_API void lua_replace (lua_State *L, int idx) {
|
|
|
StkId o;
|
|
|
lua_lock(L);
|
|
|
/* explicit test for incompatible code */
|
|
@@ -230,7 +230,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_replace (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushvalue (lua_State *L, int idx) {
|
|
|
+LUA_API void lua_pushvalue (lua_State *L, int idx) {
|
|
|
lua_lock(L);
|
|
|
setobj2s(L, L->top, index2adr(L, idx));
|
|
|
api_incr_top(L);
|
|
@@ -244,44 +244,44 @@ LUA_API void ICACHE_FLASH_ATTR lua_pushvalue (lua_State *L, int idx) {
|
|
|
*/
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_type (lua_State *L, int idx) {
|
|
|
+LUA_API int lua_type (lua_State *L, int idx) {
|
|
|
StkId o = index2adr(L, idx);
|
|
|
return (o == luaO_nilobject) ? LUA_TNONE : ttype(o);
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API const char *ICACHE_FLASH_ATTR lua_typename (lua_State *L, int t) {
|
|
|
+LUA_API const char *lua_typename (lua_State *L, int t) {
|
|
|
UNUSED(L);
|
|
|
return (t == LUA_TNONE) ? "no value" : luaT_typenames[t];
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_iscfunction (lua_State *L, int idx) {
|
|
|
+LUA_API int lua_iscfunction (lua_State *L, int idx) {
|
|
|
StkId o = index2adr(L, idx);
|
|
|
return iscfunction(o);
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_isnumber (lua_State *L, int idx) {
|
|
|
+LUA_API int lua_isnumber (lua_State *L, int idx) {
|
|
|
TValue n;
|
|
|
const TValue *o = index2adr(L, idx);
|
|
|
return tonumber(o, &n);
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_isstring (lua_State *L, int idx) {
|
|
|
+LUA_API int lua_isstring (lua_State *L, int idx) {
|
|
|
int t = lua_type(L, idx);
|
|
|
return (t == LUA_TSTRING || t == LUA_TNUMBER);
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_isuserdata (lua_State *L, int idx) {
|
|
|
+LUA_API int lua_isuserdata (lua_State *L, int idx) {
|
|
|
const TValue *o = index2adr(L, idx);
|
|
|
return (ttisuserdata(o) || ttislightuserdata(o));
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_rawequal (lua_State *L, int index1, int index2) {
|
|
|
+LUA_API int lua_rawequal (lua_State *L, int index1, int index2) {
|
|
|
StkId o1 = index2adr(L, index1);
|
|
|
StkId o2 = index2adr(L, index2);
|
|
|
return (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0
|
|
@@ -289,7 +289,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_rawequal (lua_State *L, int index1, int index2
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_equal (lua_State *L, int index1, int index2) {
|
|
|
+LUA_API int lua_equal (lua_State *L, int index1, int index2) {
|
|
|
StkId o1, o2;
|
|
|
int i;
|
|
|
lua_lock(L); /* may call tag method */
|
|
@@ -301,7 +301,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_equal (lua_State *L, int index1, int index2) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_lessthan (lua_State *L, int index1, int index2) {
|
|
|
+LUA_API int lua_lessthan (lua_State *L, int index1, int index2) {
|
|
|
StkId o1, o2;
|
|
|
int i;
|
|
|
lua_lock(L); /* may call tag method */
|
|
@@ -315,7 +315,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_lessthan (lua_State *L, int index1, int index2
|
|
|
|
|
|
|
|
|
|
|
|
-LUA_API lua_Number ICACHE_FLASH_ATTR lua_tonumber (lua_State *L, int idx) {
|
|
|
+LUA_API lua_Number lua_tonumber (lua_State *L, int idx) {
|
|
|
TValue n;
|
|
|
const TValue *o = index2adr(L, idx);
|
|
|
if (tonumber(o, &n))
|
|
@@ -325,7 +325,7 @@ LUA_API lua_Number ICACHE_FLASH_ATTR lua_tonumber (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API lua_Integer ICACHE_FLASH_ATTR lua_tointeger (lua_State *L, int idx) {
|
|
|
+LUA_API lua_Integer lua_tointeger (lua_State *L, int idx) {
|
|
|
TValue n;
|
|
|
const TValue *o = index2adr(L, idx);
|
|
|
if (tonumber(o, &n)) {
|
|
@@ -339,13 +339,13 @@ LUA_API lua_Integer ICACHE_FLASH_ATTR lua_tointeger (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_toboolean (lua_State *L, int idx) {
|
|
|
+LUA_API int lua_toboolean (lua_State *L, int idx) {
|
|
|
const TValue *o = index2adr(L, idx);
|
|
|
return !l_isfalse(o);
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API const char *ICACHE_FLASH_ATTR lua_tolstring (lua_State *L, int idx, size_t *len) {
|
|
|
+LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {
|
|
|
StkId o = index2adr(L, idx);
|
|
|
if (!ttisstring(o)) {
|
|
|
lua_lock(L); /* `luaV_tostring' may create a new string */
|
|
@@ -363,7 +363,7 @@ LUA_API const char *ICACHE_FLASH_ATTR lua_tolstring (lua_State *L, int idx, size
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API size_t ICACHE_FLASH_ATTR lua_objlen (lua_State *L, int idx) {
|
|
|
+LUA_API size_t lua_objlen (lua_State *L, int idx) {
|
|
|
StkId o = index2adr(L, idx);
|
|
|
switch (ttype(o)) {
|
|
|
case LUA_TSTRING: return tsvalue(o)->len;
|
|
@@ -382,13 +382,13 @@ LUA_API size_t ICACHE_FLASH_ATTR lua_objlen (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API lua_CFunction ICACHE_FLASH_ATTR lua_tocfunction (lua_State *L, int idx) {
|
|
|
+LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx) {
|
|
|
StkId o = index2adr(L, idx);
|
|
|
return (!iscfunction(o)) ? NULL : clvalue(o)->c.f;
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void *ICACHE_FLASH_ATTR lua_touserdata (lua_State *L, int idx) {
|
|
|
+LUA_API void *lua_touserdata (lua_State *L, int idx) {
|
|
|
StkId o = index2adr(L, idx);
|
|
|
switch (ttype(o)) {
|
|
|
case LUA_TUSERDATA: return (rawuvalue(o) + 1);
|
|
@@ -398,13 +398,13 @@ LUA_API void *ICACHE_FLASH_ATTR lua_touserdata (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API lua_State *ICACHE_FLASH_ATTR lua_tothread (lua_State *L, int idx) {
|
|
|
+LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
|
|
|
StkId o = index2adr(L, idx);
|
|
|
return (!ttisthread(o)) ? NULL : thvalue(o);
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API const void *ICACHE_FLASH_ATTR lua_topointer (lua_State *L, int idx) {
|
|
|
+LUA_API const void *lua_topointer (lua_State *L, int idx) {
|
|
|
StkId o = index2adr(L, idx);
|
|
|
switch (ttype(o)) {
|
|
|
case LUA_TTABLE: return hvalue(o);
|
|
@@ -427,7 +427,7 @@ LUA_API const void *ICACHE_FLASH_ATTR lua_topointer (lua_State *L, int idx) {
|
|
|
*/
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushnil (lua_State *L) {
|
|
|
+LUA_API void lua_pushnil (lua_State *L) {
|
|
|
lua_lock(L);
|
|
|
setnilvalue(L->top);
|
|
|
api_incr_top(L);
|
|
@@ -435,7 +435,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_pushnil (lua_State *L) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushnumber (lua_State *L, lua_Number n) {
|
|
|
+LUA_API void lua_pushnumber (lua_State *L, lua_Number n) {
|
|
|
lua_lock(L);
|
|
|
setnvalue(L->top, n);
|
|
|
api_incr_top(L);
|
|
@@ -443,7 +443,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_pushnumber (lua_State *L, lua_Number n) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushinteger (lua_State *L, lua_Integer n) {
|
|
|
+LUA_API void lua_pushinteger (lua_State *L, lua_Integer n) {
|
|
|
lua_lock(L);
|
|
|
setnvalue(L->top, cast_num(n));
|
|
|
api_incr_top(L);
|
|
@@ -451,7 +451,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_pushinteger (lua_State *L, lua_Integer n) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushlstring (lua_State *L, const char *s, size_t len) {
|
|
|
+LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len) {
|
|
|
lua_lock(L);
|
|
|
luaC_checkGC(L);
|
|
|
setsvalue2s(L, L->top, luaS_newlstr(L, s, len));
|
|
@@ -460,7 +460,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_pushlstring (lua_State *L, const char *s, siz
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushrolstring (lua_State *L, const char *s, size_t len) {
|
|
|
+LUA_API void lua_pushrolstring (lua_State *L, const char *s, size_t len) {
|
|
|
lua_lock(L);
|
|
|
luaC_checkGC(L);
|
|
|
setsvalue2s(L, L->top, luaS_newrolstr(L, s, len));
|
|
@@ -469,7 +469,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_pushrolstring (lua_State *L, const char *s, s
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushstring (lua_State *L, const char *s) {
|
|
|
+LUA_API void lua_pushstring (lua_State *L, const char *s) {
|
|
|
if (s == NULL)
|
|
|
lua_pushnil(L);
|
|
|
else
|
|
@@ -477,7 +477,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_pushstring (lua_State *L, const char *s) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API const char *ICACHE_FLASH_ATTR lua_pushvfstring (lua_State *L, const char *fmt,
|
|
|
+LUA_API const char *lua_pushvfstring (lua_State *L, const char *fmt,
|
|
|
va_list argp) {
|
|
|
const char *ret;
|
|
|
lua_lock(L);
|
|
@@ -488,7 +488,7 @@ LUA_API const char *ICACHE_FLASH_ATTR lua_pushvfstring (lua_State *L, const char
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API const char *ICACHE_FLASH_ATTR lua_pushfstring (lua_State *L, const char *fmt, ...) {
|
|
|
+LUA_API const char *lua_pushfstring (lua_State *L, const char *fmt, ...) {
|
|
|
const char *ret;
|
|
|
va_list argp;
|
|
|
lua_lock(L);
|
|
@@ -501,7 +501,7 @@ LUA_API const char *ICACHE_FLASH_ATTR lua_pushfstring (lua_State *L, const char
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) {
|
|
|
+LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) {
|
|
|
Closure *cl;
|
|
|
lua_lock(L);
|
|
|
luaC_checkGC(L);
|
|
@@ -518,7 +518,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_pushcclosure (lua_State *L, lua_CFunction fn,
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushboolean (lua_State *L, int b) {
|
|
|
+LUA_API void lua_pushboolean (lua_State *L, int b) {
|
|
|
lua_lock(L);
|
|
|
setbvalue(L->top, (b != 0)); /* ensure that true is 1 */
|
|
|
api_incr_top(L);
|
|
@@ -526,21 +526,21 @@ LUA_API void ICACHE_FLASH_ATTR lua_pushboolean (lua_State *L, int b) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushlightuserdata (lua_State *L, void *p) {
|
|
|
+LUA_API void lua_pushlightuserdata (lua_State *L, void *p) {
|
|
|
lua_lock(L);
|
|
|
setpvalue(L->top, p);
|
|
|
api_incr_top(L);
|
|
|
lua_unlock(L);
|
|
|
}
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushrotable (lua_State *L, void *p) {
|
|
|
+LUA_API void lua_pushrotable (lua_State *L, void *p) {
|
|
|
lua_lock(L);
|
|
|
setrvalue(L->top, p);
|
|
|
api_incr_top(L);
|
|
|
lua_unlock(L);
|
|
|
}
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_pushlightfunction(lua_State *L, void *p) {
|
|
|
+LUA_API void lua_pushlightfunction(lua_State *L, void *p) {
|
|
|
lua_lock(L);
|
|
|
setfvalue(L->top, p);
|
|
|
api_incr_top(L);
|
|
@@ -548,7 +548,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_pushlightfunction(lua_State *L, void *p) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_pushthread (lua_State *L) {
|
|
|
+LUA_API int lua_pushthread (lua_State *L) {
|
|
|
lua_lock(L);
|
|
|
setthvalue(L, L->top, L);
|
|
|
api_incr_top(L);
|
|
@@ -563,7 +563,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_pushthread (lua_State *L) {
|
|
|
*/
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_gettable (lua_State *L, int idx) {
|
|
|
+LUA_API void lua_gettable (lua_State *L, int idx) {
|
|
|
StkId t;
|
|
|
lua_lock(L);
|
|
|
t = index2adr(L, idx);
|
|
@@ -573,7 +573,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_gettable (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_getfield (lua_State *L, int idx, const char *k) {
|
|
|
+LUA_API void lua_getfield (lua_State *L, int idx, const char *k) {
|
|
|
StkId t;
|
|
|
TValue key;
|
|
|
lua_lock(L);
|
|
@@ -588,7 +588,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_getfield (lua_State *L, int idx, const char *
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_rawget (lua_State *L, int idx) {
|
|
|
+LUA_API void lua_rawget (lua_State *L, int idx) {
|
|
|
StkId t;
|
|
|
const TValue *res;
|
|
|
lua_lock(L);
|
|
@@ -600,7 +600,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_rawget (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_rawgeti (lua_State *L, int idx, int n) {
|
|
|
+LUA_API void lua_rawgeti (lua_State *L, int idx, int n) {
|
|
|
StkId o;
|
|
|
lua_lock(L);
|
|
|
o = index2adr(L, idx);
|
|
@@ -611,7 +611,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_rawgeti (lua_State *L, int idx, int n) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_createtable (lua_State *L, int narray, int nrec) {
|
|
|
+LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {
|
|
|
lua_lock(L);
|
|
|
luaC_checkGC(L);
|
|
|
sethvalue(L, L->top, luaH_new(L, narray, nrec));
|
|
@@ -620,7 +620,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_createtable (lua_State *L, int narray, int nr
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_getmetatable (lua_State *L, int objindex) {
|
|
|
+LUA_API int lua_getmetatable (lua_State *L, int objindex) {
|
|
|
const TValue *obj;
|
|
|
Table *mt = NULL;
|
|
|
int res;
|
|
@@ -655,7 +655,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_getmetatable (lua_State *L, int objindex) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_getfenv (lua_State *L, int idx) {
|
|
|
+LUA_API void lua_getfenv (lua_State *L, int idx) {
|
|
|
StkId o;
|
|
|
lua_lock(L);
|
|
|
o = index2adr(L, idx);
|
|
@@ -684,7 +684,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_getfenv (lua_State *L, int idx) {
|
|
|
*/
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_settable (lua_State *L, int idx) {
|
|
|
+LUA_API void lua_settable (lua_State *L, int idx) {
|
|
|
StkId t;
|
|
|
lua_lock(L);
|
|
|
api_checknelems(L, 2);
|
|
@@ -696,7 +696,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_settable (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_setfield (lua_State *L, int idx, const char *k) {
|
|
|
+LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {
|
|
|
StkId t;
|
|
|
lua_lock(L);
|
|
|
api_checknelems(L, 1);
|
|
@@ -710,7 +710,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_setfield (lua_State *L, int idx, const char *
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_rawset (lua_State *L, int idx) {
|
|
|
+LUA_API void lua_rawset (lua_State *L, int idx) {
|
|
|
StkId t;
|
|
|
lua_lock(L);
|
|
|
api_checknelems(L, 2);
|
|
@@ -725,7 +725,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_rawset (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_rawseti (lua_State *L, int idx, int n) {
|
|
|
+LUA_API void lua_rawseti (lua_State *L, int idx, int n) {
|
|
|
StkId o;
|
|
|
lua_lock(L);
|
|
|
api_checknelems(L, 1);
|
|
@@ -740,7 +740,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_rawseti (lua_State *L, int idx, int n) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_setmetatable (lua_State *L, int objindex) {
|
|
|
+LUA_API int lua_setmetatable (lua_State *L, int objindex) {
|
|
|
TValue *obj;
|
|
|
Table *mt;
|
|
|
int isrometa = 0;
|
|
@@ -783,7 +783,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_setmetatable (lua_State *L, int objindex) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_setfenv (lua_State *L, int idx) {
|
|
|
+LUA_API int lua_setfenv (lua_State *L, int idx) {
|
|
|
StkId o;
|
|
|
int res = 1;
|
|
|
lua_lock(L);
|
|
@@ -825,7 +825,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_setfenv (lua_State *L, int idx) {
|
|
|
api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na)))
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_call (lua_State *L, int nargs, int nresults) {
|
|
|
+LUA_API void lua_call (lua_State *L, int nargs, int nresults) {
|
|
|
StkId func;
|
|
|
lua_lock(L);
|
|
|
api_checknelems(L, nargs+1);
|
|
@@ -847,14 +847,14 @@ struct CallS { /* data to `f_call' */
|
|
|
};
|
|
|
|
|
|
|
|
|
-static void ICACHE_FLASH_ATTR f_call (lua_State *L, void *ud) {
|
|
|
+static void f_call (lua_State *L, void *ud) {
|
|
|
struct CallS *c = cast(struct CallS *, ud);
|
|
|
luaD_call(L, c->func, c->nresults);
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_pcall (lua_State *L, int nargs, int nresults, int errfunc) {
|
|
|
+LUA_API int lua_pcall (lua_State *L, int nargs, int nresults, int errfunc) {
|
|
|
struct CallS c;
|
|
|
int status;
|
|
|
ptrdiff_t func;
|
|
@@ -886,7 +886,7 @@ struct CCallS { /* data to `f_Ccall' */
|
|
|
};
|
|
|
|
|
|
|
|
|
-static void ICACHE_FLASH_ATTR f_Ccall (lua_State *L, void *ud) {
|
|
|
+static void f_Ccall (lua_State *L, void *ud) {
|
|
|
struct CCallS *c = cast(struct CCallS *, ud);
|
|
|
Closure *cl;
|
|
|
cl = luaF_newCclosure(L, 0, getcurrenv(L));
|
|
@@ -899,7 +899,7 @@ static void ICACHE_FLASH_ATTR f_Ccall (lua_State *L, void *ud) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_cpcall (lua_State *L, lua_CFunction func, void *ud) {
|
|
|
+LUA_API int lua_cpcall (lua_State *L, lua_CFunction func, void *ud) {
|
|
|
struct CCallS c;
|
|
|
int status;
|
|
|
lua_lock(L);
|
|
@@ -911,7 +911,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_cpcall (lua_State *L, lua_CFunction func, void
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_load (lua_State *L, lua_Reader reader, void *data,
|
|
|
+LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
|
|
|
const char *chunkname) {
|
|
|
ZIO z;
|
|
|
int status;
|
|
@@ -924,7 +924,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_load (lua_State *L, lua_Reader reader, void *d
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_dump (lua_State *L, lua_Writer writer, void *data) {
|
|
|
+LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {
|
|
|
int status;
|
|
|
TValue *o;
|
|
|
lua_lock(L);
|
|
@@ -939,7 +939,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_dump (lua_State *L, lua_Writer writer, void *d
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_status (lua_State *L) {
|
|
|
+LUA_API int lua_status (lua_State *L) {
|
|
|
return L->status;
|
|
|
}
|
|
|
|
|
@@ -948,7 +948,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_status (lua_State *L) {
|
|
|
** Garbage-collection function
|
|
|
*/
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_gc (lua_State *L, int what, int data) {
|
|
|
+LUA_API int lua_gc (lua_State *L, int what, int data) {
|
|
|
int res = 0;
|
|
|
global_State *g;
|
|
|
lua_lock(L);
|
|
@@ -1035,7 +1035,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_gc (lua_State *L, int what, int data) {
|
|
|
*/
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_error (lua_State *L) {
|
|
|
+LUA_API int lua_error (lua_State *L) {
|
|
|
lua_lock(L);
|
|
|
api_checknelems(L, 1);
|
|
|
luaG_errormsg(L);
|
|
@@ -1044,7 +1044,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_error (lua_State *L) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API int ICACHE_FLASH_ATTR lua_next (lua_State *L, int idx) {
|
|
|
+LUA_API int lua_next (lua_State *L, int idx) {
|
|
|
StkId t;
|
|
|
int more;
|
|
|
lua_lock(L);
|
|
@@ -1061,7 +1061,7 @@ LUA_API int ICACHE_FLASH_ATTR lua_next (lua_State *L, int idx) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_concat (lua_State *L, int n) {
|
|
|
+LUA_API void lua_concat (lua_State *L, int n) {
|
|
|
lua_lock(L);
|
|
|
api_checknelems(L, n);
|
|
|
if (n >= 2) {
|
|
@@ -1078,7 +1078,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_concat (lua_State *L, int n) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API lua_Alloc ICACHE_FLASH_ATTR lua_getallocf (lua_State *L, void **ud) {
|
|
|
+LUA_API lua_Alloc lua_getallocf (lua_State *L, void **ud) {
|
|
|
lua_Alloc f;
|
|
|
lua_lock(L);
|
|
|
if (ud) *ud = G(L)->ud;
|
|
@@ -1088,7 +1088,7 @@ LUA_API lua_Alloc ICACHE_FLASH_ATTR lua_getallocf (lua_State *L, void **ud) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void ICACHE_FLASH_ATTR lua_setallocf (lua_State *L, lua_Alloc f, void *ud) {
|
|
|
+LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud) {
|
|
|
lua_lock(L);
|
|
|
G(L)->ud = ud;
|
|
|
G(L)->frealloc = f;
|
|
@@ -1096,7 +1096,7 @@ LUA_API void ICACHE_FLASH_ATTR lua_setallocf (lua_State *L, lua_Alloc f, void *u
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API void *ICACHE_FLASH_ATTR lua_newuserdata (lua_State *L, size_t size) {
|
|
|
+LUA_API void *lua_newuserdata (lua_State *L, size_t size) {
|
|
|
Udata *u;
|
|
|
lua_lock(L);
|
|
|
luaC_checkGC(L);
|
|
@@ -1110,7 +1110,7 @@ LUA_API void *ICACHE_FLASH_ATTR lua_newuserdata (lua_State *L, size_t size) {
|
|
|
|
|
|
|
|
|
|
|
|
-static const char *ICACHE_FLASH_ATTR aux_upvalue (StkId fi, int n, TValue **val) {
|
|
|
+static const char *aux_upvalue (StkId fi, int n, TValue **val) {
|
|
|
Closure *f;
|
|
|
if (!ttisfunction(fi)) return NULL;
|
|
|
f = clvalue(fi);
|
|
@@ -1128,7 +1128,7 @@ static const char *ICACHE_FLASH_ATTR aux_upvalue (StkId fi, int n, TValue **val)
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API const char *ICACHE_FLASH_ATTR lua_getupvalue (lua_State *L, int funcindex, int n) {
|
|
|
+LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) {
|
|
|
const char *name;
|
|
|
TValue *val;
|
|
|
lua_lock(L);
|
|
@@ -1142,7 +1142,7 @@ LUA_API const char *ICACHE_FLASH_ATTR lua_getupvalue (lua_State *L, int funcinde
|
|
|
}
|
|
|
|
|
|
|
|
|
-LUA_API const char *ICACHE_FLASH_ATTR lua_setupvalue (lua_State *L, int funcindex, int n) {
|
|
|
+LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) {
|
|
|
const char *name;
|
|
|
TValue *val;
|
|
|
StkId fi;
|