From aa2bcb166f2f0356dceb4e9424223ccbd483faf0 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Wed, 23 Nov 2016 11:07:35 +0000 Subject: typedef struct and start removing auto --- src/exact_value.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/exact_value.cpp') 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)); -- cgit v1.2.3