all repos — hex @ 2fbb9076d769b3582e1e26d2377ea5b1b93b21ea

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Fixes (string escaping not fully working)
h3rald h3rald@h3rald.com
Thu, 02 Jan 2025 21:35:02 +0000
commit

2fbb9076d769b3582e1e26d2377ea5b1b93b21ea

parent

1d6ca69e0ccfc5eff2c44c460b8c834db1a61e3e

1 files changed, 3 insertions(+), 7 deletions(-)

jump to
M src/utils.csrc/utils.c

@@ -325,6 +325,9 @@ {

src++; switch (*src) { + case '\\': + *dst++ = '\\'; + break; case 'n': *dst++ = '\n'; break;

@@ -346,13 +349,6 @@ break;

case '\"': *dst++ = '\"'; break; - case '\\': - *dst++ = '\\'; - if (*(src + 2)) - { - *dst++ = *(src + 2); - src++; - } default: *dst++ = '\\'; *dst++ = *src;