Simplify the rusage.com command

This commit is contained in:
Justine Tunney 2023-09-07 05:39:58 -07:00
parent b592716d1c
commit dcda6f7d8d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
7 changed files with 86 additions and 106 deletions

View file

@ -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\

View file

@ -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");

View file

@ -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 "\

View file

@ -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)
{

View file

@ -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)
{