2022-05-18 23:41:29 +00:00
|
|
|
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│
|
|
|
|
│vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│
|
|
|
|
╞══════════════════════════════════════════════════════════════════════════════╡
|
|
|
|
│ Python 3 │
|
|
|
|
│ https://docs.python.org/3/license.html │
|
|
|
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
2022-06-15 23:19:50 +00:00
|
|
|
#include "libc/log/log.h"
|
2022-05-18 23:41:29 +00:00
|
|
|
#include "libc/runtime/runtime.h"
|
2023-09-07 12:39:58 +00:00
|
|
|
#include "libc/runtime/stack.h"
|
2022-05-18 23:41:29 +00:00
|
|
|
#include "third_party/python/Include/yoink.h"
|
|
|
|
#include "third_party/python/runpythonmodule.h"
|
|
|
|
#include "tool/args/args.h"
|
|
|
|
|
2023-09-07 12:39:58 +00:00
|
|
|
STATIC_STACK_ALIGN(GetStackSize());
|
|
|
|
|
2022-05-18 23:41:29 +00:00
|
|
|
int
|
|
|
|
main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
LoadZipArgs(&argc, &argv);
|
|
|
|
__nosync = 0x5453455454534146;
|
|
|
|
return RunPythonModule(argc, argv);
|
|
|
|
}
|