path: root/src/lib/eolian/eolian_database.h
diff options
authorDaniel Kolesa <>2018-04-18 16:34:49 +0200
committerDaniel Kolesa <>2018-04-18 16:38:14 +0200
commit543902f2ba13b69b052eb21a4a36324d96f5eeba (patch)
tree1e8319b39e6de8fd942ca7ecd2de28fe107067fb /src/lib/eolian/eolian_database.h
parentd13cfe1b83f594238f199e590bfc50fa7fd8c945 (diff)
eolian: make doc ref resolution global
Doc refs no longer introduce new dependencies into files. Instead, they're parsed globally, and any doc ref lookup is also made globally. This allows unit based dependencies to correspond more to what files actually really need at compile time/runtime, with docs being irrelevant to that; it also simplifies the API. The doc resolution API now takes Eolian_State instead of Eolian_Unit, too.
Diffstat (limited to 'src/lib/eolian/eolian_database.h')
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/eolian/eolian_database.h b/src/lib/eolian/eolian_database.h
index 319ec25..c423225 100644
--- a/src/lib/eolian/eolian_database.h
+++ b/src/lib/eolian/eolian_database.h
@@ -387,6 +387,12 @@ void database_doc_del(Eolian_Documentation *doc);
387void database_unit_init(Eolian_State *state, Eolian_Unit *unit, const char *file); 387void database_unit_init(Eolian_State *state, Eolian_Unit *unit, const char *file);
388void database_unit_del(Eolian_Unit *unit); 388void database_unit_del(Eolian_Unit *unit);
389 389
390Eolian_Object_Type database_doc_token_ref_resolve(const Eolian_Doc_Token *tok,
391 const Eolian_Unit *unit1,
392 const Eolian_Unit *unit2,
393 const Eolian_Object **data1,
394 const Eolian_Object **data2);
390/* types */ 396/* types */
391 397
392void database_type_add(Eolian_Unit *unit, Eolian_Typedecl *tp); 398void database_type_add(Eolian_Unit *unit, Eolian_Typedecl *tp);