From 95cd4365fa722fccc9c1fdda988a2a33cfe34341 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 14 Aug 2020 13:21:31 +0200 Subject: [PATCH] :art: Change special type character to '~' --- src/env/type_special.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/env/type_special.c b/src/env/type_special.c index 60509ea6..d6eea972 100644 --- a/src/env/type_special.c +++ b/src/env/type_special.c @@ -4,7 +4,7 @@ #include "vm.h" #include "gwion.h" -static m_str const special_name[] = { ":nonnull", ":force" }; +static m_str const special_name[] = { "~nonnull", "~force" }; #define SPECIAL_LEN strlen(special_name[0]) + strlen(special_name[1]) static const ae_flag special_flag[] = { ae_flag_nonnull, ae_flag_force }; @@ -45,7 +45,7 @@ ANN static void specialtype_init(SymTable *st, SpecialType *s) { const size_t sz = strlen(s->type->name); char c[sz + SPECIAL_LEN + 1]; strcpy(c, s->type->name); - m_str flagged = strchr(c, ':'); + m_str flagged = strchr(c, '~'); if(flagged) *flagged = '\0'; specialtype_flag(s, c, 0); -- 2.43.0