mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Simplify the rusage.com command
This commit is contained in:
parent
b592716d1c
commit
dcda6f7d8d
7 changed files with 86 additions and 106 deletions
3
third_party/python/freeze.c
vendored
3
third_party/python/freeze.c
vendored
|
@ -7,6 +7,7 @@
|
|||
#include "libc/assert.h"
|
||||
#include "libc/log/log.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/stack.h"
|
||||
#include "third_party/python/Include/bytesobject.h"
|
||||
#include "third_party/python/Include/compile.h"
|
||||
#include "third_party/python/Include/fileutils.h"
|
||||
|
@ -18,6 +19,8 @@
|
|||
#include "third_party/python/Include/pythonrun.h"
|
||||
/* clang-format off */
|
||||
|
||||
STATIC_STACK_ALIGN(GetStackSize());
|
||||
|
||||
#define HEADER "\
|
||||
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│\n\
|
||||
│vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│\n\
|
||||
|
|
3
third_party/python/launch.c
vendored
3
third_party/python/launch.c
vendored
|
@ -13,6 +13,7 @@
|
|||
#include "libc/log/log.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/runtime/stack.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
#include "libc/x/x.h"
|
||||
#include "third_party/python/Include/abstract.h"
|
||||
|
@ -39,6 +40,8 @@
|
|||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
STATIC_STACK_ALIGN(GetStackSize());
|
||||
|
||||
#define USE_COSMO_CRASH MODE_DBG + 0
|
||||
|
||||
__static_yoink("zipos");
|
||||
|
|
3
third_party/python/pyobj.c
vendored
3
third_party/python/pyobj.c
vendored
|
@ -29,6 +29,7 @@
|
|||
#include "libc/mem/gc.internal.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/runtime/stack.h"
|
||||
#include "libc/stdio/append.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/sysv/consts/clock.h"
|
||||
|
@ -64,6 +65,8 @@
|
|||
#include "tool/build/lib/stripcomponents.h"
|
||||
/* clang-format off */
|
||||
|
||||
STATIC_STACK_ALIGN(GetStackSize());
|
||||
|
||||
__static_yoink("_PyUnicode_GetCode");
|
||||
|
||||
#define MANUAL "\
|
||||
|
|
3
third_party/python/pythontester.c
vendored
3
third_party/python/pythontester.c
vendored
|
@ -6,11 +6,14 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/log/log.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/runtime/stack.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/runpythonmodule.h"
|
||||
#include "tool/args/args.h"
|
||||
// clang-format off
|
||||
|
||||
STATIC_STACK_ALIGN(GetStackSize());
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
|
|
3
third_party/python/repl.c
vendored
3
third_party/python/repl.c
vendored
|
@ -4,11 +4,14 @@
|
|||
│ Python 3 │
|
||||
│ https://docs.python.org/3/license.html │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/runtime/stack.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
#include "third_party/python/runpythonmodule.h"
|
||||
#include "tool/args/args.h"
|
||||
// clang-format off
|
||||
|
||||
STATIC_STACK_ALIGN(GetStackSize());
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue