From 8ecfca0c9b4d8a8f7c553f99b0bf10142eea88e6 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Wed, 23 Nov 2016 10:36:48 +0000 Subject: Remove templated Map; replace with #include macro "templates" trick --- src/exact_value.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/exact_value.cpp') diff --git a/src/exact_value.cpp b/src/exact_value.cpp index 15d03ba2b..890a0f33e 100644 --- a/src/exact_value.cpp +++ b/src/exact_value.cpp @@ -21,7 +21,7 @@ enum ExactValueKind { struct ExactValue { ExactValueKind kind; union { - b32 value_bool; + bool value_bool; String value_string; i64 value_integer; // NOTE(bill): This must be an integer and not a pointer f64 value_float; @@ -41,7 +41,7 @@ ExactValue make_exact_value_compound(AstNode *node) { return result; } -ExactValue make_exact_value_bool(b32 b) { +ExactValue make_exact_value_bool(bool b) { ExactValue result = {ExactValue_Bool}; result.value_bool = (b != 0); return result; @@ -339,7 +339,7 @@ i32 cmp_f64(f64 a, f64 b) { return (a > b) - (a < b); } -b32 compare_exact_values(Token op, ExactValue x, ExactValue y) { +bool compare_exact_values(Token op, ExactValue x, ExactValue y) { match_exact_values(&x, &y); switch (x.kind) { -- cgit v1.2.3