diff options
| author | gingerBill <bill@gingerbill.org> | 2022-12-18 21:17:07 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-12-18 21:17:07 +0000 |
| commit | ac5f5a33e94054396de66a37043e226349b6c91c (patch) | |
| tree | 3b561345c4542112da67b9139c3ff6cf54cf7219 /src/range_cache.cpp | |
| parent | ff6b76986a0647ffc7d99c7e7df78ec8e5fb91b2 (diff) | |
`gb_internal` a lot
Diffstat (limited to 'src/range_cache.cpp')
| -rw-r--r-- | src/range_cache.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/range_cache.cpp b/src/range_cache.cpp index 9701fb432..1f98c4b9e 100644 --- a/src/range_cache.cpp +++ b/src/range_cache.cpp @@ -10,17 +10,17 @@ struct RangeCache { }; -RangeCache range_cache_make(gbAllocator a) { +gb_internal RangeCache range_cache_make(gbAllocator a) { RangeCache cache = {}; array_init(&cache.ranges, a); return cache; } -void range_cache_destroy(RangeCache *c) { +gb_internal void range_cache_destroy(RangeCache *c) { array_free(&c->ranges); } -bool range_cache_add_index(RangeCache *c, i64 index) { +gb_internal bool range_cache_add_index(RangeCache *c, i64 index) { for_array(i, c->ranges) { RangeValue v = c->ranges[i]; if (v.lo <= index && index <= v.hi) { @@ -33,7 +33,7 @@ bool range_cache_add_index(RangeCache *c, i64 index) { } -bool range_cache_add_range(RangeCache *c, i64 lo, i64 hi) { +gb_internal bool range_cache_add_range(RangeCache *c, i64 lo, i64 hi) { GB_ASSERT(lo <= hi); for_array(i, c->ranges) { RangeValue v = c->ranges[i]; @@ -59,7 +59,7 @@ bool range_cache_add_range(RangeCache *c, i64 lo, i64 hi) { } -bool range_cache_index_exists(RangeCache *c, i64 index) { +gb_internal bool range_cache_index_exists(RangeCache *c, i64 index) { for_array(i, c->ranges) { RangeValue v = c->ranges[i]; if (v.lo <= index && index <= v.hi) { |