diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-29 12:54:31 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-29 12:54:31 -0400 |
| commit | 04d9adc8138566eec5d6bf7b233a6c617306bcce (patch) | |
| tree | 8414c07e92cdd17613190cd6a8e179b2eed2f00c /structs.c | |
| parent | d94053ca7768037016cbcacc4cadf843dad1bea6 (diff) | |
Switch naming convention to use '$' in symbols more
Diffstat (limited to 'structs.c')
| -rw-r--r-- | structs.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -127,7 +127,7 @@ void compile_struct_def(env_t *env, ast_t *ast) // Typeinfo: CORD_appendf(&env->code->typedefs, "extern const TypeInfo %r;\n", full_name); - type_t *t = Table_str_get(*env->types, def->name); + type_t *t = Table$str_get(*env->types, def->name); assert(t && t->tag == StructType); auto struct_ = Match(t, StructType); CORD typeinfo = CORD_asprintf("public const TypeInfo %r = {%zu, %zu, {.tag=CustomInfo, .CustomInfo={", @@ -140,11 +140,11 @@ void compile_struct_def(env_t *env, ast_t *ast) type_t *member_t = struct_->fields->type; switch (member_t->tag) { case TextType: - typeinfo = CORD_all(typeinfo, ".hash=(void*)", type_to_cord(member_t), "__hash", ", "); + typeinfo = CORD_all(typeinfo, ".hash=(void*)", type_to_cord(member_t), "$hash", ", "); // fallthrough case IntType: case NumType: - typeinfo = CORD_all(typeinfo, ".compare=(void*)", type_to_cord(member_t), "__compare, " - ".equal=(void*)", type_to_cord(member_t), "__equal, "); + typeinfo = CORD_all(typeinfo, ".compare=(void*)", type_to_cord(member_t), "$compare, " + ".equal=(void*)", type_to_cord(member_t), "$equal, "); // fallthrough case BoolType: goto got_methods; default: break; |
