From: fennecdjay Date: Thu, 12 Nov 2020 13:59:03 +0000 (+0100) Subject: :art: Remove useless Id_List->pos X-Git-Tag: nightly~1159 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=4ce8b565d1833c308ae708b9a624950e663e775a;p=gwion.git :art: Remove useless Id_List->pos --- diff --git a/ast b/ast index 9264098e..d494e153 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit 9264098e6cb5e8f817d4b4f296476dac171e3d1e +Subproject commit d494e153638e663c6d8bddbf7751be53c57464e7 diff --git a/src/import/import_checker.c b/src/import/import_checker.c index 4b556234..416a22d7 100644 --- a/src/import/import_checker.c +++ b/src/import/import_checker.c @@ -74,7 +74,7 @@ ANN Symbol str2sym(const Gwion gwion, const m_str path, const loc_t pos) { // only in enum.c ANN ID_List str2symlist(const Gwion gwion, const m_str path, const loc_t pos) { DECL_OO(const Symbol, sym, = str2sym(gwion, path, pos)) - return new_id_list(gwion->mp, sym, loc_cpy(gwion->mp, pos)); + return new_id_list(gwion->mp, sym); } ANN Var_Decl str2var(const Gwion gwion, const m_str path, const loc_t pos) { @@ -101,7 +101,7 @@ ANN static ID_List _tmpl_list(const Gwion gwion, struct td_checker *tdc) { if(!(next = _tmpl_list(gwion, tdc)) || next == (ID_List)GW_ERROR) return (ID_List)GW_ERROR; } - const ID_List list = new_id_list(gwion->mp, sym, loc_cpy(gwion->mp, tdc->pos)); + const ID_List list = new_id_list(gwion->mp, sym); list->next = next; return list; }