diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-08-23 21:51:48 +0200 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-08-23 21:51:48 +0200 |
| commit | 3f3db5422397f1bf8d5af1ade256638d89b1081c (patch) | |
| tree | edc57f9b1048cfbfebd0ff1a3cffcb7c72c764c1 /src/stdio-commands.c | |
| parent | 6aa97a68a85b83267de597bfb30b70c04b7de97b (diff) | |
functions that can tail-call must be tail-called as welltail-calls
Otherwise we could "leak" stack frames, which causes crashes on platforms with small stack sizes.
This still did not result in a reproducable speedup with GCC 16.
fixup 2e097cec409182c3cb39b74489387480bf8a278f
Diffstat (limited to 'src/stdio-commands.c')
| -rw-r--r-- | src/stdio-commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdio-commands.c b/src/stdio-commands.c index 94da3c7..52f1e3f 100644 --- a/src/stdio-commands.c +++ b/src/stdio-commands.c @@ -146,7 +146,7 @@ teco_state_print_decimal_input(teco_machine_main_t *ctx, gunichar chr, GError ** return NULL; teco_expressions_pop_num(0); } - return teco_state_start_input(ctx, chr, error); + TECO_TAIL return teco_state_start_input(ctx, chr, error); } /* @@ -205,7 +205,7 @@ teco_state_print_octal_input(teco_machine_main_t *ctx, gunichar chr, GError **er return NULL; teco_expressions_pop_num(0); } - return teco_state_start_input(ctx, chr, error); + TECO_TAIL return teco_state_start_input(ctx, chr, error); } /* |
