mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-24 06:49:02 +00:00
Move LoadZipArgs() to cosmo.h
This commit is contained in:
parent
4389f4709a
commit
60e697f7b2
12 changed files with 7 additions and 18 deletions
|
@ -14,6 +14,7 @@ char *GetProgramExecutableName(void) libcesque;
|
||||||
void unleaf(void) libcesque;
|
void unleaf(void) libcesque;
|
||||||
int __demangle(char *, const char *, size_t) libcesque;
|
int __demangle(char *, const char *, size_t) libcesque;
|
||||||
int __is_mangled(const char *) libcesque;
|
int __is_mangled(const char *) libcesque;
|
||||||
|
int LoadZipArgs(int *, char ***) libcesque;
|
||||||
|
|
||||||
COSMOPOLITAN_C_END_
|
COSMOPOLITAN_C_END_
|
||||||
#endif /* COSMOPOLITAN_LIBC_COSMO_H_ */
|
#endif /* COSMOPOLITAN_LIBC_COSMO_H_ */
|
||||||
|
|
|
@ -60,7 +60,6 @@
|
||||||
#include "libc/str/utf16.h"
|
#include "libc/str/utf16.h"
|
||||||
#include "libc/sysv/errfuns.h"
|
#include "libc/sysv/errfuns.h"
|
||||||
#include "net/http/http.h"
|
#include "net/http/http.h"
|
||||||
#include "tool/args/args.h"
|
|
||||||
|
|
||||||
#ifdef COSMO_ALREADY_DEFINED
|
#ifdef COSMO_ALREADY_DEFINED
|
||||||
#undef COSMO_ALREADY_DEFINED
|
#undef COSMO_ALREADY_DEFINED
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#include "tool/args/args.h"
|
#include "libc/cosmo.h"
|
||||||
#include "libc/mem/mem.h"
|
#include "libc/mem/mem.h"
|
||||||
#include "libc/runtime/runtime.h"
|
#include "libc/runtime/runtime.h"
|
||||||
#include "libc/testlib/testlib.h"
|
#include "libc/testlib/testlib.h"
|
||||||
|
|
2
third_party/awk/cmd.c
vendored
2
third_party/awk/cmd.c
vendored
|
@ -17,7 +17,7 @@
|
||||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#include "third_party/awk/cmd.h"
|
#include "third_party/awk/cmd.h"
|
||||||
#include "tool/args/args.h"
|
#include "libc/cosmo.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
LoadZipArgs(&argc, &argv);
|
LoadZipArgs(&argc, &argv);
|
||||||
|
|
1
third_party/lua/lua.main.c
vendored
1
third_party/lua/lua.main.c
vendored
|
@ -51,7 +51,6 @@
|
||||||
#include "third_party/lua/lualib.h"
|
#include "third_party/lua/lualib.h"
|
||||||
#include "third_party/lua/lunix.h"
|
#include "third_party/lua/lunix.h"
|
||||||
#include "libc/mem/leaks.h"
|
#include "libc/mem/leaks.h"
|
||||||
#include "tool/args/args.h"
|
|
||||||
__static_yoink("lua_notice");
|
__static_yoink("lua_notice");
|
||||||
|
|
||||||
#if !defined(LUA_PROGNAME)
|
#if !defined(LUA_PROGNAME)
|
||||||
|
|
2
third_party/python/python3.c
vendored
2
third_party/python/python3.c
vendored
|
@ -6,7 +6,7 @@
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#include "third_party/python/Include/yoink.h"
|
#include "third_party/python/Include/yoink.h"
|
||||||
#include "third_party/python/runpythonmodule.h"
|
#include "third_party/python/runpythonmodule.h"
|
||||||
#include "tool/args/args.h"
|
#include "libc/cosmo.h"
|
||||||
|
|
||||||
PYTHON_YOINK("xed");
|
PYTHON_YOINK("xed");
|
||||||
PYTHON_YOINK("xterm");
|
PYTHON_YOINK("xterm");
|
||||||
|
|
2
third_party/python/pythontester.c
vendored
2
third_party/python/pythontester.c
vendored
|
@ -8,7 +8,7 @@
|
||||||
#include "libc/runtime/runtime.h"
|
#include "libc/runtime/runtime.h"
|
||||||
#include "third_party/python/Include/yoink.h"
|
#include "third_party/python/Include/yoink.h"
|
||||||
#include "third_party/python/runpythonmodule.h"
|
#include "third_party/python/runpythonmodule.h"
|
||||||
#include "tool/args/args.h"
|
#include "libc/cosmo.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
|
|
2
third_party/python/repl.c
vendored
2
third_party/python/repl.c
vendored
|
@ -6,7 +6,7 @@
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#include "third_party/python/Include/yoink.h"
|
#include "third_party/python/Include/yoink.h"
|
||||||
#include "third_party/python/runpythonmodule.h"
|
#include "third_party/python/runpythonmodule.h"
|
||||||
#include "tool/args/args.h"
|
#include "libc/cosmo.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
|
|
2
third_party/sqlite3/shell.c
vendored
2
third_party/sqlite3/shell.c
vendored
|
@ -132,7 +132,7 @@ typedef unsigned short int u16;
|
||||||
#include "libc/sysv/consts/s.h"
|
#include "libc/sysv/consts/s.h"
|
||||||
#include "libc/runtime/runtime.h"
|
#include "libc/runtime/runtime.h"
|
||||||
#include "libc/runtime/symbols.internal.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/extensions.h"
|
||||||
#include "third_party/sqlite3/sqlite3expert.h"
|
#include "third_party/sqlite3/sqlite3expert.h"
|
||||||
#include "third_party/zlib/zlib.h"
|
#include "third_party/zlib/zlib.h"
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#include "tool/args/args.h"
|
|
||||||
#include "libc/assert.h"
|
#include "libc/assert.h"
|
||||||
#include "libc/calls/calls.h"
|
#include "libc/calls/calls.h"
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
|
|
|
@ -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_ */
|
|
|
@ -130,7 +130,6 @@
|
||||||
#include "third_party/mbedtls/x509_crt.h"
|
#include "third_party/mbedtls/x509_crt.h"
|
||||||
#include "third_party/musl/netdb.h"
|
#include "third_party/musl/netdb.h"
|
||||||
#include "third_party/zlib/zlib.h"
|
#include "third_party/zlib/zlib.h"
|
||||||
#include "tool/args/args.h"
|
|
||||||
#include "tool/build/lib/case.h"
|
#include "tool/build/lib/case.h"
|
||||||
#include "tool/net/lfinger.h"
|
#include "tool/net/lfinger.h"
|
||||||
#include "tool/net/lfuncs.h"
|
#include "tool/net/lfuncs.h"
|
||||||
|
|
Loading…
Add table
Reference in a new issue