summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-29 12:43:48 -0500
committermidipix <writeonce@midipix.org>2016-01-01 22:50:24 -0500
commit43c8c9ee36f661fa9e4895350f80f43be3814b74 (patch)
tree85ce4a5f5194bee047b76e21977a552a29808dc4 /include
parent389acb44d79857eb39b2afaeb8e410f6da93dcfc (diff)
downloadapimagic-43c8c9ee36f661fa9e4895350f80f43be3814b74.tar.bz2
apimagic-43c8c9ee36f661fa9e4895350f80f43be3814b74.tar.xz
driver: generate ast for each unit upon unit context creation.
Diffstat (limited to 'include')
-rw-r--r--include/apimagic/apimagic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/apimagic/apimagic.h b/include/apimagic/apimagic.h
index e1ddfb3..f2e7bf5 100644
--- a/include/apimagic/apimagic.h
+++ b/include/apimagic/apimagic.h
@@ -4,6 +4,8 @@
#include <stdint.h>
#include <stdio.h>
+#include <cparser/driver/driver_t.h>
+
#include "apimagic_api.h"
#ifdef __cplusplus
@@ -48,6 +50,7 @@ struct amgc_common_ctx {
uint64_t drvflags;
uint64_t actflags;
uint64_t fmtflags;
+ struct compilation_env_t * ccenv;
};
struct amgc_driver_ctx {
@@ -64,6 +67,7 @@ struct amgc_unit_ctx {
const char * const * path;
const struct amgc_input * map;
const struct amgc_common_ctx * cctx;
+ const struct compilation_unit_t*ccunit;
void * any;
int status;
int nerrors;