mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-27 15:52:28 +00:00
Mint APE Loader v1.5
This change ports APE Loader to Linux AARCH64, so that Raspberry Pi users can run programs like redbean, without the executable needing to modify itself. Progress has also slipped into this change on the issue of making progress better conforming to user expectations and industry standards regarding which symbols we're allowed to declare
This commit is contained in:
parent
6843150e0c
commit
7e0a09feec
510 changed files with 1783 additions and 1483 deletions
8
third_party/regex/regexec.c
vendored
8
third_party/regex/regexec.c
vendored
|
@ -394,7 +394,7 @@ static reg_errcode_t tre_tnfa_run_parallel(const tre_tnfa_t *tnfa,
|
|||
reach_next_i++;
|
||||
|
||||
} else {
|
||||
_unassert(reach_pos[trans_i->state_id].pos == pos);
|
||||
unassert(reach_pos[trans_i->state_id].pos == pos);
|
||||
/* Another path has also reached this state. We choose
|
||||
the winner by examining the tag values for both
|
||||
paths. */
|
||||
|
@ -521,7 +521,7 @@ typedef struct tre_backtrack_struct {
|
|||
#define BT_STACK_POP() \
|
||||
do { \
|
||||
int i; \
|
||||
_unassert(stack->prev); \
|
||||
unassert(stack->prev); \
|
||||
pos = stack->item.pos; \
|
||||
str_byte = stack->item.str_byte; \
|
||||
state = stack->item.state; \
|
||||
|
@ -847,8 +847,8 @@ static void tre_fill_pmatch(size_t nmatch, regmatch_t pmatch[], int cflags,
|
|||
submatches. */
|
||||
i = 0;
|
||||
while (i < tnfa->num_submatches && i < nmatch) {
|
||||
if (pmatch[i].rm_eo == -1) _unassert(pmatch[i].rm_so == -1);
|
||||
_unassert(pmatch[i].rm_so <= pmatch[i].rm_eo);
|
||||
if (pmatch[i].rm_eo == -1) unassert(pmatch[i].rm_so == -1);
|
||||
unassert(pmatch[i].rm_so <= pmatch[i].rm_eo);
|
||||
|
||||
parents = submatch_data[i].parents;
|
||||
if (parents != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue