From 8e838a73368d5f26fee796d6ddb065e21449e989 Mon Sep 17 00:00:00 2001 From: "Ian M." Date: Sat, 3 Oct 2026 04:02:54 +0000 Subject: initial commit Signed-off-by: Ian M. --- head/atas/state.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 head/atas/state.h (limited to 'head') diff --git a/head/atas/state.h b/head/atas/state.h new file mode 100644 index 0000000..6e1fed9 --- /dev/null +++ b/head/atas/state.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2026, Apollo Telephone Laboratories. + * Provided under the BSD-3 clause. + */ + +#ifndef ATAS_STATE_H +#define ATAS_STATE_H 1 + +#include +#include + +/* + * Represents the assembler state machine + * + * @in_file: Input file + */ +struct atas_state { + FILE *in_file; +}; + +/* + * Initialize the ATAS state machine + * + * @in_file: Input file to be assembled + * @state: State machine result + * + * Returns zero on success + */ +int atas_state_init(const char *in_file, struct atas_state *state); + +/* + * Destroy an initialized state machine + * + * @state: State machine to destroy + */ +void atas_state_destroy(struct atas_state *state); + +#endif /* !ATAS_STATE_H */ -- cgit v1.2.3