mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-27 15:52:28 +00:00
Replace COSMO define with _COSMO_SOURCE
This change might cause ABI breakages for /opt/cosmos. It's needed to help us better conform to header declaration practices.
This commit is contained in:
parent
a033b65a33
commit
c776a32f75
238 changed files with 858 additions and 1069 deletions
4
third_party/lua/lrepl.c
vendored
4
third_party/lua/lrepl.c
vendored
|
@ -149,7 +149,7 @@ void lua_readline_completions (const char *p, linenoiseCompletions *c) {
|
|||
while (lua_next(L, -2)) {
|
||||
if (lua_type(L, -2) == LUA_TSTRING) {
|
||||
name = lua_tolstring(L, -2, &n);
|
||||
if (_startswithi(name, a) && (s = malloc(a - p + n + 1))) {
|
||||
if (startswithi(name, a) && (s = malloc(a - p + n + 1))) {
|
||||
memcpy(s, p, a - p);
|
||||
memcpy(s + (a - p), name, n + 1);
|
||||
lua_readline_addcompletion(c, s);
|
||||
|
@ -162,7 +162,7 @@ void lua_readline_completions (const char *p, linenoiseCompletions *c) {
|
|||
lua_pop(L, 1); // pop table
|
||||
|
||||
for (i = 0; i < ARRAYLEN(kKeywordHints); ++i) {
|
||||
if (_startswithi(kKeywordHints[i], p)) {
|
||||
if (startswithi(kKeywordHints[i], p)) {
|
||||
if ((s = strdup(kKeywordHints[i]))) {
|
||||
lua_readline_addcompletion(c, s);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue