From 7bc7662f3cd1ceaf55e00f3d5f84e9772574afc8 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 3 Jul 2025 15:21:37 +0200 Subject: implemented ^E string building constructs for embedding bytes and codepoints in a strtoul()-like manner --- src/parser.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 41b960b..36a0302 100644 --- a/src/parser.h +++ b/src/parser.h @@ -384,6 +384,13 @@ typedef struct teco_machine_stringbuilding_t { * the buffer's or Q-Register's encoding. */ guint codepage; + + /** + * String to collect code from `^E<...>` constructs. + * This could waste some memory for string arguments with nested Q-Reg specs, + * but we better keep it here than adding another global variable. + */ + teco_string_t code; } teco_machine_stringbuilding_t; void teco_machine_stringbuilding_init(teco_machine_stringbuilding_t *ctx, gunichar escape_char, -- cgit v1.2.3