mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Bump redbean to 2.0.9
This commit is contained in:
parent
896db8843f
commit
727d9cbf56
8 changed files with 156 additions and 157 deletions
29
third_party/lua/llock.c
vendored
Normal file
29
third_party/lua/llock.c
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
|
||||
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│
|
||||
╞══════════════════════════════════════════════════════════════════════════════╡
|
||||
│ Copyright 2022 Justine Alexandra Roberts Tunney │
|
||||
│ │
|
||||
│ Permission to use, copy, modify, and/or distribute this software for │
|
||||
│ any purpose with or without fee is hereby granted, provided that the │
|
||||
│ above copyright notice and this permission notice appear in all copies. │
|
||||
│ │
|
||||
│ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL │
|
||||
│ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED │
|
||||
│ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE │
|
||||
│ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL │
|
||||
│ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR │
|
||||
│ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER │
|
||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/lua/lrepl.h"
|
||||
|
||||
static pthread_mutex_t lua_repl_lock_obj;
|
||||
|
||||
void(lua_repl_lock)(void) {
|
||||
pthread_mutex_lock(&lua_repl_lock_obj);
|
||||
}
|
||||
|
||||
void(lua_repl_unlock)(void) {
|
||||
pthread_mutex_unlock(&lua_repl_lock_obj);
|
||||
}
|
9
third_party/lua/lrepl.c
vendored
9
third_party/lua/lrepl.c
vendored
|
@ -73,15 +73,6 @@ struct linenoiseState *lua_repl_linenoise;
|
|||
static lua_State *globalL;
|
||||
static const char *g_progname;
|
||||
static const char *g_historypath;
|
||||
static pthread_mutex_t lua_repl_lock_obj;
|
||||
|
||||
void(lua_repl_lock)(void) {
|
||||
pthread_mutex_lock(&lua_repl_lock_obj);
|
||||
}
|
||||
|
||||
void(lua_repl_unlock)(void) {
|
||||
pthread_mutex_unlock(&lua_repl_lock_obj);
|
||||
}
|
||||
|
||||
/*
|
||||
** {==================================================================
|
||||
|
|
1
third_party/lua/lua.mk
vendored
1
third_party/lua/lua.mk
vendored
|
@ -79,6 +79,7 @@ THIRD_PARTY_LUA_A_SRCS = \
|
|||
third_party/lua/linit.c \
|
||||
third_party/lua/liolib.c \
|
||||
third_party/lua/llex.c \
|
||||
third_party/lua/llock.c \
|
||||
third_party/lua/lmathlib.c \
|
||||
third_party/lua/lmem.c \
|
||||
third_party/lua/loadlib.c \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue