core: Add pointer box / RAII impl

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-05-23 06:03:23 -04:00
parent 32635789dc
commit f99c1d678f
4 changed files with 212 additions and 0 deletions
+3
View File
@@ -9,6 +9,7 @@
#include <stdint.h>
#include "cescal/readbuf.h"
#include "cescal/tokbuf.h"
#include "cescal/ptrbox.h"
/*
* Compiler state machine
@@ -16,11 +17,13 @@
* @in_fd: Input file descriptor
* @rb: Read buffer
* @tokbuf: Token buffer
* @ptrbox: Global pointer box
*/
struct cescal_state {
int in_fd;
struct readbuf rb;
struct tokbuf tokbuf;
struct ptrbox ptrbox;
};
/*