Skip to content

Commit 60e697f

Browse files
committed
Move LoadZipArgs() to cosmo.h
1 parent 4389f47 commit 60e697f

File tree

12 files changed

+7
-18
lines changed

12 files changed

+7
-18
lines changed

libc/cosmo.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ char *GetProgramExecutableName(void) libcesque;
1414
void unleaf(void) libcesque;
1515
int __demangle(char *, const char *, size_t) libcesque;
1616
int __is_mangled(const char *) libcesque;
17+
int LoadZipArgs(int *, char ***) libcesque;
1718

1819
COSMOPOLITAN_C_END_
1920
#endif /* COSMOPOLITAN_LIBC_COSMO_H_ */

libc/isystem/cosmo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
#include "libc/str/utf16.h"
6161
#include "libc/sysv/errfuns.h"
6262
#include "net/http/http.h"
63-
#include "tool/args/args.h"
6463

6564
#ifdef COSMO_ALREADY_DEFINED
6665
#undef COSMO_ALREADY_DEFINED

test/tool/args/args_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
1717
│ PERFORMANCE OF THIS SOFTWARE. │
1818
╚─────────────────────────────────────────────────────────────────────────────*/
19-
#include "tool/args/args.h"
19+
#include "libc/cosmo.h"
2020
#include "libc/mem/mem.h"
2121
#include "libc/runtime/runtime.h"
2222
#include "libc/testlib/testlib.h"

third_party/awk/cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
│ PERFORMANCE OF THIS SOFTWARE. │
1818
╚─────────────────────────────────────────────────────────────────────────────*/
1919
#include "third_party/awk/cmd.h"
20-
#include "tool/args/args.h"
20+
#include "libc/cosmo.h"
2121

2222
int main(int argc, char *argv[]) {
2323
LoadZipArgs(&argc, &argv);

third_party/lua/lua.main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
#include "third_party/lua/lualib.h"
5252
#include "third_party/lua/lunix.h"
5353
#include "libc/mem/leaks.h"
54-
#include "tool/args/args.h"
5554
__static_yoink("lua_notice");
5655

5756
#if !defined(LUA_PROGNAME)

third_party/python/python3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
╚─────────────────────────────────────────────────────────────────────────────*/
77
#include "third_party/python/Include/yoink.h"
88
#include "third_party/python/runpythonmodule.h"
9-
#include "tool/args/args.h"
9+
#include "libc/cosmo.h"
1010

1111
PYTHON_YOINK("xed");
1212
PYTHON_YOINK("xterm");

third_party/python/pythontester.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "libc/runtime/runtime.h"
99
#include "third_party/python/Include/yoink.h"
1010
#include "third_party/python/runpythonmodule.h"
11-
#include "tool/args/args.h"
11+
#include "libc/cosmo.h"
1212

1313
int
1414
main(int argc, char **argv)

third_party/python/repl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
╚─────────────────────────────────────────────────────────────────────────────*/
77
#include "third_party/python/Include/yoink.h"
88
#include "third_party/python/runpythonmodule.h"
9-
#include "tool/args/args.h"
9+
#include "libc/cosmo.h"
1010

1111
int
1212
main(int argc, char **argv)

third_party/sqlite3/shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ typedef unsigned short int u16;
132132
#include "libc/sysv/consts/s.h"
133133
#include "libc/runtime/runtime.h"
134134
#include "libc/runtime/symbols.internal.h"
135-
#include "tool/args/args.h"
135+
#include "libc/cosmo.h"
136136
#include "third_party/sqlite3/extensions.h"
137137
#include "third_party/sqlite3/sqlite3expert.h"
138138
#include "third_party/zlib/zlib.h"

tool/args/args.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
1717
│ PERFORMANCE OF THIS SOFTWARE. │
1818
╚─────────────────────────────────────────────────────────────────────────────*/
19-
#include "tool/args/args.h"
2019
#include "libc/assert.h"
2120
#include "libc/calls/calls.h"
2221
#include "libc/errno.h"

0 commit comments

Comments
 (0)