Page MenuHomeFreeBSD

D4560.id11263.diff
No OneTemporary

D4560.id11263.diff

Index: sys/contrib/lua/src/lauxlib.c
===================================================================
--- sys/contrib/lua/src/lauxlib.c
+++ sys/contrib/lua/src/lauxlib.c
@@ -947,7 +947,11 @@
}
+#ifdef BOOT_LUA
+static int lpanic (lua_State *L) {
+#else
static int panic (lua_State *L) {
+#endif
lua_writestringerror("PANIC: unprotected error in call to Lua API (%s)\n",
lua_tostring(L, -1));
return 0; /* return to Lua to abort */
@@ -956,7 +960,11 @@
LUALIB_API lua_State *luaL_newstate (void) {
lua_State *L = lua_newstate(l_alloc, NULL);
+#ifdef BOOT_LUA
+ if (L) lua_atpanic(L, &lpanic);
+#endif
if (L) lua_atpanic(L, &panic);
+#endif
return L;
}

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 13, 8:39 PM (11 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38871387
Default Alt Text
D4560.id11263.diff (708 B)

Event Timeline