blob: 8d1a2f3ff000b97f7ce71c8bf5a27ec3e65bf809 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "state.h"
void ccmmc_state_init (CcmmcState *state)
{
state->ast = NULL;
state->table = NULL;
state->line_number = 1;
state->any_error = false;
}
void ccmmc_state_fini (CcmmcState *state)
{
if (state->ast != NULL) {
// TODO: Free the AST
}
if (state->table != NULL) {
// TODO: Free the symbol table
}
}
// vim: set sw=4 ts=4 sts=4 et:
|