aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-03 15:21:37 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-03 16:04:01 +0200
commit7bc7662f3cd1ceaf55e00f3d5f84e9772574afc8 (patch)
tree1f68eb72c387ee25a2f7d67225538252b6b17ef5 /src/parser.h
parent9e3746a4e42f98cad7dfe5b41779ffa81bd4366a (diff)
downloadsciteco-7bc7662f3cd1ceaf55e00f3d5f84e9772574afc8.tar.gz
implemented ^E<code> string building constructs for embedding bytes and codepoints in a strtoul()-like manner
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h7
1 files changed, 7 insertions, 0 deletions
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,