diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-11-23 11:07:35 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-11-23 11:07:35 +0000 |
| commit | aa2bcb166f2f0356dceb4e9424223ccbd483faf0 (patch) | |
| tree | a5e7b728142864b7bd3d9a6a19cf9ee1b77d249e /src/exact_value.cpp | |
| parent | 8ecfca0c9b4d8a8f7c553f99b0bf10142eea88e6 (diff) | |
typedef struct and start removing auto
Diffstat (limited to 'src/exact_value.cpp')
| -rw-r--r-- | src/exact_value.cpp | 10 |
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)); |