diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-11-23 10:36:48 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-11-23 10:36:48 +0000 |
| commit | 8ecfca0c9b4d8a8f7c553f99b0bf10142eea88e6 (patch) | |
| tree | d04d929f7cd07cddf064704b7171ad3524f092a7 /src/exact_value.cpp | |
| parent | cb7b9a413d66b1dce30a4d810f17ed8453c0a738 (diff) | |
Remove templated Map; replace with #include macro "templates" trick
Diffstat (limited to 'src/exact_value.cpp')
| -rw-r--r-- | src/exact_value.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |