core: Add pointer box / RAII impl
Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user