diff options
| author | peter <peter@pmikkelsen.com> | 2026-08-30 14:20:55 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-08-30 14:20:55 +0000 |
| commit | 8521b6a69deab8cdabe1c87b09ecdc93d75af98e (patch) | |
| tree | 99a482477d500eef11771e6d35e42c173254da29 /src/lib/syntax.c | |
| parent | 29479e2c50d41f29b5e21ffcb16416887aa693d2 (diff) | |
Remove the struct memory struct
FossilOrigin-Name: 38568a34f631b2a4eef72542e2988a9fe081f85d3248194c2ff995a9eed6bd5d
Diffstat (limited to 'src/lib/syntax.c')
| -rw-r--r-- | src/lib/syntax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/syntax.c b/src/lib/syntax.c index 395c75e..9888bef 100644 --- a/src/lib/syntax.c +++ b/src/lib/syntax.c @@ -246,7 +246,7 @@ scan_string(struct aplwc *aplwc, struct string *text, int oneline) return NULL; } - tokens = memory_alloc_token_list(&aplwc->memory, n); + tokens = memory_alloc_token_list(aplwc, n); if(tokens == NULL){ aplwc->last_error = APLWC_OUT_OF_MEMORY; return NULL; @@ -261,7 +261,7 @@ scan_string(struct aplwc *aplwc, struct string *text, int oneline) for(i++; i < n; i++){ if(tokens->tokens[i].tag != TOKEN_TAG_NEWLINE){ - memory_free_token_list(&aplwc->memory, tokens); + memory_free_token_list(aplwc, tokens); return NULL; } } |