diff --git a/libc/cosmo.h b/libc/cosmo.h index af2dc289c..ce7f3a5dc 100644 --- a/libc/cosmo.h +++ b/libc/cosmo.h @@ -14,6 +14,7 @@ char *GetProgramExecutableName(void) libcesque; void unleaf(void) libcesque; int __demangle(char *, const char *, size_t) libcesque; int __is_mangled(const char *) libcesque; +int LoadZipArgs(int *, char ***) libcesque; COSMOPOLITAN_C_END_ #endif /* COSMOPOLITAN_LIBC_COSMO_H_ */ diff --git a/libc/isystem/cosmo.h b/libc/isystem/cosmo.h index e8f15be72..5004c0a11 100644 --- a/libc/isystem/cosmo.h +++ b/libc/isystem/cosmo.h @@ -60,7 +60,6 @@ #include "libc/str/utf16.h" #include "libc/sysv/errfuns.h" #include "net/http/http.h" -#include "tool/args/args.h" #ifdef COSMO_ALREADY_DEFINED #undef COSMO_ALREADY_DEFINED diff --git a/test/tool/args/args_test.c b/test/tool/args/args_test.c index ec57b1044..0f7f6c47d 100644 --- a/test/tool/args/args_test.c +++ b/test/tool/args/args_test.c @@ -16,7 +16,7 @@ │ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │ │ PERFORMANCE OF THIS SOFTWARE. │ ╚─────────────────────────────────────────────────────────────────────────────*/ -#include "tool/args/args.h" +#include "libc/cosmo.h" #include "libc/mem/mem.h" #include "libc/runtime/runtime.h" #include "libc/testlib/testlib.h" diff --git a/third_party/awk/cmd.c b/third_party/awk/cmd.c index 54882575f..78ca032e8 100644 --- a/third_party/awk/cmd.c +++ b/third_party/awk/cmd.c @@ -17,7 +17,7 @@ │ PERFORMANCE OF THIS SOFTWARE. │ ╚─────────────────────────────────────────────────────────────────────────────*/ #include "third_party/awk/cmd.h" -#include "tool/args/args.h" +#include "libc/cosmo.h" int main(int argc, char *argv[]) { LoadZipArgs(&argc, &argv); diff --git a/third_party/lua/lua.main.c b/third_party/lua/lua.main.c index 469c5638f..0672809be 100644 --- a/third_party/lua/lua.main.c +++ b/third_party/lua/lua.main.c @@ -51,7 +51,6 @@ #include "third_party/lua/lualib.h" #include "third_party/lua/lunix.h" #include "libc/mem/leaks.h" -#include "tool/args/args.h" __static_yoink("lua_notice"); #if !defined(LUA_PROGNAME) diff --git a/third_party/python/python3.c b/third_party/python/python3.c index 907bd32a7..8f6bf3865 100644 --- a/third_party/python/python3.c +++ b/third_party/python/python3.c @@ -6,7 +6,7 @@ ╚─────────────────────────────────────────────────────────────────────────────*/ #include "third_party/python/Include/yoink.h" #include "third_party/python/runpythonmodule.h" -#include "tool/args/args.h" +#include "libc/cosmo.h" PYTHON_YOINK("xed"); PYTHON_YOINK("xterm"); diff --git a/third_party/python/pythontester.c b/third_party/python/pythontester.c index 07549673b..e55e63edd 100644 --- a/third_party/python/pythontester.c +++ b/third_party/python/pythontester.c @@ -8,7 +8,7 @@ #include "libc/runtime/runtime.h" #include "third_party/python/Include/yoink.h" #include "third_party/python/runpythonmodule.h" -#include "tool/args/args.h" +#include "libc/cosmo.h" int main(int argc, char **argv) diff --git a/third_party/python/repl.c b/third_party/python/repl.c index 9528e4e83..4b4aa7c22 100644 --- a/third_party/python/repl.c +++ b/third_party/python/repl.c @@ -6,7 +6,7 @@ ╚─────────────────────────────────────────────────────────────────────────────*/ #include "third_party/python/Include/yoink.h" #include "third_party/python/runpythonmodule.h" -#include "tool/args/args.h" +#include "libc/cosmo.h" int main(int argc, char **argv) diff --git a/third_party/sqlite3/shell.c b/third_party/sqlite3/shell.c index e81818669..5c29318c1 100644 --- a/third_party/sqlite3/shell.c +++ b/third_party/sqlite3/shell.c @@ -132,7 +132,7 @@ typedef unsigned short int u16; #include "libc/sysv/consts/s.h" #include "libc/runtime/runtime.h" #include "libc/runtime/symbols.internal.h" -#include "tool/args/args.h" +#include "libc/cosmo.h" #include "third_party/sqlite3/extensions.h" #include "third_party/sqlite3/sqlite3expert.h" #include "third_party/zlib/zlib.h" diff --git a/tool/args/args.c b/tool/args/args.c index cfb88fd59..2a6c0dc44 100644 --- a/tool/args/args.c +++ b/tool/args/args.c @@ -16,7 +16,6 @@ │ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │ │ PERFORMANCE OF THIS SOFTWARE. │ ╚─────────────────────────────────────────────────────────────────────────────*/ -#include "tool/args/args.h" #include "libc/assert.h" #include "libc/calls/calls.h" #include "libc/errno.h" diff --git a/tool/args/args.h b/tool/args/args.h deleted file mode 100644 index dbb517888..000000000 --- a/tool/args/args.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef COSMOPOLITAN_TOOL_ARGS_ARGS_H_ -#define COSMOPOLITAN_TOOL_ARGS_ARGS_H_ -COSMOPOLITAN_C_START_ - -int LoadZipArgs(int *, char ***) libcesque; - -COSMOPOLITAN_C_END_ -#endif /* COSMOPOLITAN_TOOL_ARGS_ARGS_H_ */ diff --git a/tool/net/redbean.c b/tool/net/redbean.c index 6e6f196bd..1bfbc64d9 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -130,7 +130,6 @@ #include "third_party/mbedtls/x509_crt.h" #include "third_party/musl/netdb.h" #include "third_party/zlib/zlib.h" -#include "tool/args/args.h" #include "tool/build/lib/case.h" #include "tool/net/lfinger.h" #include "tool/net/lfuncs.h"