Move LoadZipArgs() to cosmo.h

This commit is contained in:
Justine Tunney 2024-08-17 12:06:27 -07:00
parent 4389f4709a
commit 60e697f7b2
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
12 changed files with 7 additions and 18 deletions

View file

@ -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_ */

View file

@ -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

View file

@ -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"

View file

@ -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);

View file

@ -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)

View file

@ -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");

View file

@ -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)

View file

@ -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)

View file

@ -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"

View file

@ -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"

View file

@ -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_ */

View file

@ -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"