Release redbean 1.5

This commit is contained in:
Justine Tunney 2021-11-14 21:26:56 -08:00
parent f12c6c1b5e
commit d6a039821f
4 changed files with 17 additions and 138 deletions

View file

@ -152,7 +152,7 @@ STATIC_STACK_SIZE(0x40000);
#define REDBEAN "redbean"
#endif
#define VERSION 0x010400
#define VERSION 0x010500
#define HASH_LOAD_FACTOR /* 1. / */ 4
#define read(F, P, N) readv(F, &(struct iovec){P, N}, 1)
#define write(F, P, N) writev(F, &(struct iovec){P, N}, 1)
@ -1027,6 +1027,9 @@ static int LuaCallWithTrace(lua_State *L, int nargs, int nres) {
return status;
}
/* TODO(paul): Regression with /redbean.lua */
#define LuaCallWithTrace(L, N, Z) lua_pcall(L, N, Z, 0)
static void LogLuaError(char *hook, char *err) {
ERRORF("(lua) failed to run %s: %s", hook, err);
}
@ -5565,6 +5568,7 @@ static const luaL_Reg kLuaFuncs[] = {
{"GetTime", LuaGetTime}, //
{"GetUrl", LuaGetUrl}, //
{"GetUser", LuaGetUser}, //
{"GetVersion", LuaGetHttpVersion}, //
{"GetZipPaths", LuaGetZipPaths}, //
{"HasControlCodes", LuaHasControlCodes}, //
{"HasParam", LuaHasParam}, //