mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Introduce Python objectifier (#259)
This commit is contained in:
parent
34b68f1945
commit
81287b7ec0
13 changed files with 1702 additions and 1564 deletions
16
third_party/python/pycomp.c
vendored
16
third_party/python/pycomp.c
vendored
|
@ -38,6 +38,7 @@
|
|||
#include "third_party/python/Include/pylifecycle.h"
|
||||
#include "third_party/python/Include/pymacro.h"
|
||||
#include "third_party/python/Include/pythonrun.h"
|
||||
#include "tool/build/lib/stripcomponents.h"
|
||||
/* clang-format off */
|
||||
|
||||
#define MANUAL "\
|
||||
|
@ -67,21 +68,6 @@ int optimize;
|
|||
char *inpath;
|
||||
char *outpath;
|
||||
|
||||
char *
|
||||
StripComponents(const char *path, int n)
|
||||
{
|
||||
const char *p;
|
||||
while (n-- > 0) {
|
||||
for (p = path; *p; ++p) {
|
||||
if (*p == '/') {
|
||||
path = p + 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return (char *)path;
|
||||
}
|
||||
|
||||
void
|
||||
GetOpts(int argc, char *argv[])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue