diff options
author | midipix <writeonce@midipix.org> | 2015-12-30 05:27:21 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-01-01 22:50:24 -0500 |
commit | 9c202860ad2bc391a0ac8bc2e99b3e5624d2b472 (patch) | |
tree | 29e6995f8b40a2b019c71cea9b707f4d2d2385b9 /include | |
parent | f0e1b6834ba12762c51f2f1430238fac62ab47ef (diff) | |
download | apimagic-9c202860ad2bc391a0ac8bc2e99b3e5624d2b472.tar.bz2 apimagic-9c202860ad2bc391a0ac8bc2e99b3e5624d2b472.tar.xz |
amgc_init_unit_meta(): initial implementation and integration.
Diffstat (limited to 'include')
-rw-r--r-- | include/apimagic/apimagic.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/apimagic/apimagic.h b/include/apimagic/apimagic.h index 7d17211..500463c 100644 --- a/include/apimagic/apimagic.h +++ b/include/apimagic/apimagic.h @@ -65,10 +65,22 @@ struct amgc_driver_ctx { int nerrors; }; +struct amgc_unit_meta { + int ndefines; + int nenums; + int nenumvals; + int ntypedefs; + int nstructs; + int nunions; + int nfunctions; + int ngenerated; +}; + struct amgc_unit_ctx { const char * const * path; const struct amgc_input * map; const struct amgc_common_ctx * cctx; + const struct amgc_unit_meta * meta; const struct compilation_unit_t*ccunit; void * any; int status; @@ -91,6 +103,9 @@ amgc_api int amgc_lang_std_from_string (const char * std); /* utility api */ +/* low-level api */ +amgc_api int amgc_init_unit_meta (const struct amgc_unit_ctx *, struct amgc_unit_meta *); + #ifdef __cplusplus } #endif |