aboutsummaryrefslogtreecommitdiff
path: root/src/checker/type.cpp
diff options
context:
space:
mode:
authorgingerBill <ginger.bill.22@gmail.com>2016-08-05 21:07:25 +0100
committergingerBill <ginger.bill.22@gmail.com>2016-08-05 21:07:25 +0100
commitba238c569a54ac52aa318aa1238be790f941f724 (patch)
tree5dea8e913a6f5b21299fb5f5b6b5ed7f5aeed5d0 /src/checker/type.cpp
parent4a303b5c3ef38bd99c36fa990c922917c0134d52 (diff)
Strings galore!
Diffstat (limited to 'src/checker/type.cpp')
-rw-r--r--src/checker/type.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp
index fe9df4360..1b0977eec 100644
--- a/src/checker/type.cpp
+++ b/src/checker/type.cpp
@@ -26,7 +26,7 @@ enum BasicKind {
Basic_Count,
- Basic_byte = Basic_u8,
+ // Basic_byte = Basic_u8,
Basic_rune = Basic_i32,
};
@@ -242,7 +242,7 @@ gb_global Type basic_types[] = {
};
gb_global Type basic_type_aliases[] = {
- {Type_Basic, {Basic_byte, BasicFlag_Integer | BasicFlag_Unsigned, STR_LIT("byte")}},
+ // {Type_Basic, {Basic_byte, BasicFlag_Integer | BasicFlag_Unsigned, STR_LIT("byte")}},
{Type_Basic, {Basic_rune, BasicFlag_Integer, STR_LIT("rune")}},
};
@@ -268,7 +268,7 @@ gb_global Type *t_untyped_float = &basic_types[Basic_UntypedFloat];
gb_global Type *t_untyped_pointer = &basic_types[Basic_UntypedPointer];
gb_global Type *t_untyped_string = &basic_types[Basic_UntypedString];
gb_global Type *t_untyped_rune = &basic_types[Basic_UntypedRune];
-gb_global Type *t_byte = &basic_type_aliases[Basic_byte];
+// gb_global Type *t_byte = &basic_type_aliases[Basic_byte];
gb_global Type *t_rune = &basic_type_aliases[Basic_rune];
@@ -343,9 +343,9 @@ b32 is_type_rawptr(Type *t) {
return t->basic.kind == Basic_rawptr;
return false;
}
-b32 is_type_byte(Type *t) {
+b32 is_type_u8(Type *t) {
if (t->kind == Type_Basic)
- return t->basic.kind == Basic_byte;
+ return t->basic.kind == Basic_u8;
return false;
}
b32 is_type_slice(Type *t) {
@@ -353,9 +353,9 @@ b32 is_type_slice(Type *t) {
}
-b32 is_type_byte_slice(Type *t) {
+b32 is_type_u8_slice(Type *t) {
if (t->kind == Type_Slice)
- return is_type_byte(t->slice.elem);
+ return is_type_u8(t->slice.elem);
return false;
}