aboutsummaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-03 18:15:45 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-03-03 18:15:45 -0500
commit8fab88c56f95c03ffcb4be178f5dbb21b239d95e (patch)
tree3c2e721b8ea55d43b94fa9f315659580652573c5 /types.c
parent07f0a18136a7883d1f3edd3e08253bd3020294a8 (diff)
Rename Str -> Text
Diffstat (limited to 'types.c')
-rw-r--r--types.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/types.c b/types.c
index 59896b28..30f648b5 100644
--- a/types.c
+++ b/types.c
@@ -16,7 +16,7 @@ CORD type_to_cord(type_t *t) {
case VoidType: return "Void";
case MemoryType: return "Memory";
case BoolType: return "Bool";
- case StringType: return "Str";
+ case TextType: return "Text";
case IntType: return Match(t, IntType)->bits == 64 ? "Int" : CORD_asprintf("Int%ld", Match(t, IntType)->bits);
case NumType: return Match(t, NumType)->bits == 64 ? "Num" : CORD_asprintf("Num%ld", Match(t, NumType)->bits);
case ArrayType: {
@@ -428,7 +428,7 @@ size_t type_size(type_t *t)
case BoolType: return sizeof(bool);
case IntType: return Match(t, IntType)->bits/8;
case NumType: return Match(t, NumType)->bits/8;
- case StringType: return sizeof(CORD);
+ case TextType: return sizeof(CORD);
case ArrayType: return sizeof(array_t);
case TableType: return sizeof(table_t);
case FunctionType: return sizeof(void*);
@@ -477,7 +477,7 @@ size_t type_align(type_t *t)
case BoolType: return __alignof__(bool);
case IntType: return Match(t, IntType)->bits/8;
case NumType: return Match(t, NumType)->bits/8;
- case StringType: return __alignof__(CORD);
+ case TextType: return __alignof__(CORD);
case ArrayType: return __alignof__(array_t);
case TableType: return __alignof__(table_t);
case FunctionType: return __alignof__(void*);