diff debug.h @ 2395:ebca8ab02701

Basic string support in debugger language
author Michael Pavone <pavone@retrodev.com>
date Wed, 13 Dec 2023 20:09:18 -0800
parents 5f4917b9ecfa
children bf4f1a8d1d48
line wrap: on
line diff
--- a/debug.h	Wed Dec 06 22:25:49 2023 -0800
+++ b/debug.h	Wed Dec 13 20:09:18 2023 -0800
@@ -23,7 +23,8 @@
 	TOKEN_LBRACKET,
 	TOKEN_RBRACKET,
 	TOKEN_LPAREN,
-	TOKEN_RPAREN
+	TOKEN_RPAREN,
+	TOKEN_STRING
 } token_type;
 
 typedef struct {
@@ -163,6 +164,12 @@
 	uint8_t  is_native;
 } debug_func;
 
+typedef struct {
+	char     *buffer;
+	uint32_t size;
+	uint32_t storage;
+} debug_string;
+
 typedef struct debug_var debug_var;
 typedef debug_val (*debug_var_get)(debug_var *var);
 typedef void (*debug_var_set)(debug_var *var, debug_val val);