aboutsummaryrefslogtreecommitdiff
path: root/src/exact_value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/exact_value.cpp')
-rw-r--r--src/exact_value.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp
index 890a0f33e..d06194d2b 100644
--- a/src/exact_value.cpp
+++ b/src/exact_value.cpp
@@ -3,9 +3,9 @@
// TODO(bill): Big numbers
// IMPORTANT TODO(bill): This needs to be completely fixed!!!!!!!!
-struct AstNode;
+typedef struct AstNode AstNode;
-enum ExactValueKind {
+typedef enum ExactValueKind {
ExactValue_Invalid,
ExactValue_Bool,
@@ -16,9 +16,9 @@ enum ExactValueKind {
ExactValue_Compound, // TODO(bill): Is this good enough?
ExactValue_Count,
-};
+} ExactValueKind;
-struct ExactValue {
+typedef struct ExactValue {
ExactValueKind kind;
union {
bool value_bool;
@@ -28,7 +28,7 @@ struct ExactValue {
i64 value_pointer;
AstNode *value_compound;
};
-};
+} ExactValue;
HashKey hash_exact_value(ExactValue v) {
return hashing_proc(&v, gb_size_of(ExactValue));