build: Add headers

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-05-23 01:34:59 -04:00
parent a371b6ebb0
commit a356913c39
3 changed files with 90 additions and 1 deletions
+40
View File
@@ -0,0 +1,40 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause
*/
#ifndef CESCAL_STATE_H
#define CESCAL_STATE_H 1
#include <stdint.h>
#include "cescal/readbuf.h"
/*
* Compiler state machine
*
* @in_fd: Input file descriptor
* @rb: Read buffer
*/
struct cescal_state {
int in_fd;
struct readbuf rb;
};
/*
* Initialize the compiler state machine
*
* @state: Compiler state machine
* @pathname: Path of input source file
*
* Returns zero on success
*/
int state_init(struct cescal_state *state, const char *pathname);
/*
* Close the compiler state machine
*
* @state: Compiler state machine to close
*/
void state_close(struct cescal_state *state);
#endif /* !CESCAL_STATE_H */