Mint APE Loader v2.0

I opted for 2.0 rather than 1.10 for two reasons: one, believe it or
not, it saves a byte (on x86_64 at least.) Two, (and less jokingly,)
the change to no longer modify `argv[0]` is breaking.
This commit is contained in:
Jōshin 2023-12-15 13:22:05 -05:00
parent f94c11d978
commit 561e767d63
No known key found for this signature in database
9 changed files with 4 additions and 3 deletions

View file

@ -1021,7 +1021,7 @@ int main(int argc, char **argv, char **envp) {
Emit("usage: ape PROG [ARGV1,ARGV2,...]\n"
" ape - PROG [ARGV0,ARGV1,...]\n"
" ($0 = PROG.ape) [ARGV1,ARGV2,...]\n"
"actually portable executable loader silicon 1.9\n"
"actually portable executable loader silicon 2.0\n"
"copyright 2023 justine alexandra roberts tunney\n"
"https://justine.lol/ape.html\n");
_exit(1);

View file

@ -1,8 +1,8 @@
#ifndef COSMOPOLITAN_APE_APE_H_
#define COSMOPOLITAN_APE_APE_H_
#define APE_VERSION_MAJOR 1
#define APE_VERSION_MINOR 9
#define APE_VERSION_MAJOR 2
#define APE_VERSION_MINOR 0
#define APE_VERSION_STR APE_VERSION_STR_(APE_VERSION_MAJOR, APE_VERSION_MINOR)
#define APE_VERSION_NOTE APE_VERSION_NOTE_(APE_VERSION_MAJOR, APE_VERSION_MINOR)

View file

@ -54,6 +54,7 @@ for x in .ape \
.ape-1.7 \
.ape-1.8 \
.ape-1.9 \
.ape-2.0 \
.ape-blink-0.9.2 \
.ape-blink-1.0.0; do
rm -f \

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.