From: fennecdjay Date: Sat, 26 Oct 2019 19:21:44 +0000 (+0200) Subject: :art: Enforce use of name_valid X-Git-Tag: nightly~2116^2~22 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f1caaa5148e35404e84801b40c0fff4936ebe883;p=gwion.git :art: Enforce use of name_valid --- diff --git a/src/lib/import.c b/src/lib/import.c index 8d113151..f34d135d 100644 --- a/src/lib/import.c +++ b/src/lib/import.c @@ -119,8 +119,7 @@ ANN2(1,2) Type gwi_mk_type(const Gwi gwi NUSED, const m_str name, const m_uint s } ANN m_int gwi_add_type(const Gwi gwi, const Type type) { - if(type->name[0] != '@') - CHECK_BB(name_valid(gwi, type->name)); + CHECK_BB(name_valid(gwi, type->name)); env_add_type(gwi->gwion->env, type); return (m_int)type->xid; }