diff --git a/examples/romanize.c b/examples/romanize.c index 6bf885b1a..a31b1ab1f 100644 --- a/examples/romanize.c +++ b/examples/romanize.c @@ -17,6 +17,7 @@ #include #include #include +#include "libc/ctype.h" /** * @fileoverview Roman Transliteration, e.g. diff --git a/libc/intrin/wsarecv.c b/libc/intrin/wsarecv.c index e4fe65f11..62c489e0f 100644 --- a/libc/intrin/wsarecv.c +++ b/libc/intrin/wsarecv.c @@ -59,8 +59,8 @@ textwindows int WSARecv( } if (UNLIKELY(__strace > 0) && strace_enabled(0) > 0) { kprintf(STRACE_PROLOGUE "WSARecv(%lu, [", s); - DescribeIovNt(inout_lpBuffers, dwBufferCount, - rc != -1 ? NumberOfBytesRecvd : 0); + _DescribeIovNt(inout_lpBuffers, dwBufferCount, + rc != -1 ? NumberOfBytesRecvd : 0); kprintf("], %u, [%'u], %p, %s, %p) → %d% lm\n", dwBufferCount, NumberOfBytesRecvd, inout_lpFlags, DescribeNtOverlapped(opt_inout_lpOverlapped), diff --git a/libc/mem/levenshtein.c b/libc/mem/levenshtein.c index 198ddf200..f1e1cc131 100644 --- a/libc/mem/levenshtein.c +++ b/libc/mem/levenshtein.c @@ -18,6 +18,7 @@ ╚─────────────────────────────────────────────────────────────────────────────*/ #include "libc/mem/alg.h" #include "libc/mem/mem.h" +#include "libc/str/str.h" #define MIN3(a, b, c) \ ((a) < (b) ? ((a) < (c) ? (a) : (c)) : ((b) < (c) ? (b) : (c))) diff --git a/libc/nt/struct/iovec.h b/libc/nt/struct/iovec.h index b29f4bd8b..e2898da96 100644 --- a/libc/nt/struct/iovec.h +++ b/libc/nt/struct/iovec.h @@ -7,7 +7,7 @@ struct NtIovec { char *buf; }; -void DescribeIovNt(const struct NtIovec *, uint32_t, ssize_t); +void _DescribeIovNt(const struct NtIovec *, uint32_t, ssize_t); COSMOPOLITAN_C_END_ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IOVEC_H_ */ diff --git a/libc/nt/struct/securityattributes.h b/libc/nt/struct/securityattributes.h index e481ede22..05145944c 100644 --- a/libc/nt/struct/securityattributes.h +++ b/libc/nt/struct/securityattributes.h @@ -9,9 +9,9 @@ struct NtSecurityAttributes { bool32 bInheritHandle; }; -const char *DescribeNtSecurityAttributes(char[32], - const struct NtSecurityAttributes *); +const char *_DescribeNtSecurityAttributes(char[32], + const struct NtSecurityAttributes *); #define DescribeNtSecurityAttributes(x) \ - DescribeNtSecurityAttributes(alloca(32), x) + _DescribeNtSecurityAttributes(alloca(32), x) #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYATTRIBUTES_H_ */ diff --git a/net/turfwar/turfwar.c b/net/turfwar/turfwar.c index cc77f8b3f..6ccf9578f 100644 --- a/net/turfwar/turfwar.c +++ b/net/turfwar/turfwar.c @@ -1568,7 +1568,7 @@ bool GenerateScore(struct Asset *out, long secs, long cash) { int rc; char *sb = 0; sqlite3 *db = 0; - /* size_t sblen = 0; */ + size_t sblen = 0; struct Asset a = {0}; sqlite3_stmt *stmt = 0; bool namestate = false; @@ -1614,7 +1614,7 @@ bool GenerateScore(struct Asset *out, long secs, long cash) { namestate = true; CHECK_SYS(appendf( &a.data.p, "\"%s\":[\n", - "wut"/* EscapeJsStringLiteral(&sb, &sblen, strcpy(name1, name2), -1, 0) */)); + EscapeJsStringLiteral(&sb, &sblen, strcpy(name1, name2), -1, 0))); } else { // name repeated CHECK_SYS(appends(&a.data.p, ",\n")); diff --git a/third_party/dlmalloc/threaded.inc b/third_party/dlmalloc/threaded.inc index f6664b653..e8768dbc3 100644 --- a/third_party/dlmalloc/threaded.inc +++ b/third_party/dlmalloc/threaded.inc @@ -25,6 +25,7 @@ #include "libc/thread/thread.h" #include "libc/thread/threads.h" #include "libc/errno.h" +#include "libc/calls/struct/cpuset.h" #include "third_party/dlmalloc/dlmalloc.h" #if !FOOTERS || !MSPACES diff --git a/third_party/lua/lua.main.c b/third_party/lua/lua.main.c index 0672809be..9a0cee129 100644 --- a/third_party/lua/lua.main.c +++ b/third_party/lua/lua.main.c @@ -50,6 +50,7 @@ #include "third_party/lua/lrepl.h" #include "third_party/lua/lualib.h" #include "third_party/lua/lunix.h" +#include "libc/cosmo.h" #include "libc/mem/leaks.h" __static_yoink("lua_notice"); diff --git a/tool/net/redbean.c b/tool/net/redbean.c index 1bfbc64d9..eeb2e3116 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -31,6 +31,7 @@ #include "libc/calls/struct/termios.h" #include "libc/calls/struct/timespec.h" #include "libc/calls/termios.h" +#include "libc/cosmo.h" #include "libc/ctype.h" #include "libc/dce.h" #include "libc/dos.h" diff --git a/tool/viz/malloc_scalability.c b/tool/viz/malloc_scalability.c index 434be2123..cf48d345b 100644 --- a/tool/viz/malloc_scalability.c +++ b/tool/viz/malloc_scalability.c @@ -19,6 +19,7 @@ #include "libc/calls/struct/timespec.h" #include "libc/mem/mem.h" #include "libc/runtime/runtime.h" +#include "libc/stdio/stdio.h" #include "libc/thread/thread.h" #define ALLOCATIONS 1000