mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 08:20:28 +00:00
Final tweaks.
This commit is contained in:
parent
bc027d9bc3
commit
ed158ba6dc
4 changed files with 4 additions and 2 deletions
2
third_party/lua/README.cosmo
vendored
2
third_party/lua/README.cosmo
vendored
|
@ -157,4 +157,4 @@ NOTES
|
|||
|
||||
The more things like that we do — the easier we can make it to
|
||||
quickly and correctly read diffs — the easier we'll make it to
|
||||
keep Cosmo's Lua in sync with the latest Lua.
|
||||
keep Cosmo's Lua in sync with the latest Lua.
|
||||
|
|
1
third_party/lua/lauxlib.h
vendored
1
third_party/lua/lauxlib.h
vendored
|
@ -168,6 +168,7 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
|
|||
#if defined LUAI_ASSERT
|
||||
#define lua_assert(c) assert(c)
|
||||
#else
|
||||
// [jart]
|
||||
#define lua_assert(c) unassert(c)
|
||||
#endif
|
||||
|
||||
|
|
1
third_party/lua/lctype.h
vendored
1
third_party/lua/lctype.h
vendored
|
@ -14,6 +14,7 @@
|
|||
check_exp(('A' <= (c) && (c) <= 'Z') || (c) == ((c) | ('A' ^ 'a')), \
|
||||
(c) | ('A' ^ 'a'))
|
||||
|
||||
// [jart]
|
||||
#define lisdigit(C) \
|
||||
({ \
|
||||
unsigned char c_ = (C); \
|
||||
|
|
2
third_party/lua/ltests.c
vendored
2
third_party/lua/ltests.c
vendored
|
@ -1259,7 +1259,7 @@ static int panicback (lua_State *L) {
|
|||
b = (struct Aux *)lua_touserdata(L, -1);
|
||||
lua_pop(L, 1); /* remove 'Aux' struct */
|
||||
runC(b->L, L, b->paniccode); /* run optional panic code */
|
||||
_gclongjmp(b->jb, 1); // [jart]
|
||||
gclongjmp(b->jb, 1); // [jart]
|
||||
return 1; /* to avoid warnings */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue