From b0b23acf887bec28b5ef8d0dfe448c4228ee0eb3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 11 Sep 2024 13:55:41 -0400 Subject: Rename "Nil"->"Null" for consistency --- compile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 85321000..4b8bdfeb 100644 --- a/compile.c +++ b/compile.c @@ -1689,8 +1689,8 @@ static bool string_literal_is_all_ascii(CORD literal) CORD compile(env_t *env, ast_t *ast) { switch (ast->tag) { - case Nil: { - type_t *t = parse_type_ast(env, Match(ast, Nil)->type); + case Null: { + type_t *t = parse_type_ast(env, Match(ast, Null)->type); if (t == THREAD_TYPE) return "NULL"; switch (t->tag) { @@ -1720,7 +1720,7 @@ CORD compile(env_t *env, ast_t *ast) env_t *enum_env = Match(t, EnumType)->env; return CORD_all("((", compile_type(t), "){", namespace_prefix(enum_env->libname, enum_env->namespace), "null})"); } - default: code_err(ast, "Nil isn't implemented for this type: %T", t); + default: code_err(ast, "Null isn't implemented for this type: %T", t); } } case Bool: return Match(ast, Bool)->b ? "yes" : "no"; -- cgit v1.2.3