mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 19:22:27 +00:00
Improve system call support
This commit is contained in:
parent
63b867bd2f
commit
3085ac7837
65 changed files with 900 additions and 544 deletions
6
third_party/python/Programs/freeze.c
vendored
6
third_party/python/Programs/freeze.c
vendored
|
@ -27,7 +27,7 @@
|
|||
\n\
|
||||
/*\n\
|
||||
* Auto-generated by\n\
|
||||
* %s \\\n\
|
||||
* o/third_party/python/freeze \\\n\
|
||||
* %s \\\n\
|
||||
* %s\n\
|
||||
*/\n\
|
||||
|
@ -46,6 +46,8 @@ main(int argc, char *argv[])
|
|||
PyObject *code = NULL, *marshalled = NULL;
|
||||
int is_bootstrap = 1;
|
||||
|
||||
if (argc == 2 && !strcmp(argv[1], "-n")) return 0;
|
||||
|
||||
if (argc != 3) {
|
||||
fprintf(stderr, "need to specify input and output paths\n");
|
||||
return 2;
|
||||
|
@ -115,7 +117,7 @@ main(int argc, char *argv[])
|
|||
fprintf(stderr, "cannot open '%s' for writing\n", outpath);
|
||||
goto error;
|
||||
}
|
||||
fprintf(outfile, HEADER, argv[0], argv[1], argv[2]);
|
||||
fprintf(outfile, HEADER, argv[1], argv[2]);
|
||||
if (is_bootstrap)
|
||||
fprintf(outfile, "const unsigned char _Py_M__importlib[] = {\n");
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue