diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-11 13:55:41 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-11 13:55:41 -0400 |
| commit | b0b23acf887bec28b5ef8d0dfe448c4228ee0eb3 (patch) | |
| tree | d2ad22c1850acd186ed1286bd6fa759cdea6487e /compile.c | |
| parent | 2c90750a3eed81d07f2e74acd9744de0b9853b11 (diff) | |
Rename "Nil"->"Null" for consistency
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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"; |
