aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-11-23 09:46:58 +0000
committerGinger Bill <bill@gingerbill.org>2016-11-23 09:46:58 +0000
commit543a2d1e5a0ee96e782fb184ea5b73b9081c0eff (patch)
tree8fa17a5fb07c8103dc88d6b760ef1d73c06876a5 /src/common.cpp
parent36ad9dae43cd21d8532994cd0d0e92a89af0ed04 (diff)
Swap b32 to bool, et al.
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common.cpp b/src/common.cpp
index e07ea362a..7969b5943 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -9,7 +9,7 @@ gbAllocator heap_allocator(void) {
#include "array.cpp"
gb_global String global_module_path = {};
-gb_global b32 global_module_path_set = false;
+gb_global bool global_module_path_set = false;
String get_module_dir() {
@@ -125,7 +125,7 @@ gb_inline HashKey hash_pointer(void *ptr) {
return h;
}
-b32 hash_key_equal(HashKey a, HashKey b) {
+bool hash_key_equal(HashKey a, HashKey b) {
if (a.key == b.key) {
// NOTE(bill): If two string's hashes collide, compare the strings themselves
if (a.kind == HashKey_String) {
@@ -351,7 +351,7 @@ gb_internal MapFindResult map__find(Map<T> *h, MapEntry<T> *e) {
template <typename T>
-gb_internal b32 map__full(Map<T> *h) {
+gb_internal bool map__full(Map<T> *h) {
return 0.75f * h->hashes.count <= h->entries.count;
}