diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-20 14:58:32 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-20 14:58:32 -0400 |
| commit | 2dd9392ef91b953ad5741fa8a955cfd7694a2e05 (patch) | |
| tree | 4c058d3c38fd1ac8528317a29c923e405ab57887 /builtins/array.h | |
| parent | ff3e1c13284ba25841e35eccf435a15f8d17b1b9 (diff) | |
Fix USE_COLOR
Diffstat (limited to 'builtins/array.h')
| -rw-r--r-- | builtins/array.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/builtins/array.h b/builtins/array.h index 5ee115ae..a2e76f18 100644 --- a/builtins/array.h +++ b/builtins/array.h @@ -5,12 +5,10 @@ #include <stdbool.h> #include <gc/cord.h> -#include "util.h" #include "datatypes.h" #include "functions.h" #include "types.h" - -extern bool USE_COLOR; +#include "util.h" // Convert negative indices to back-indexed without branching: index0 = index + (index < 0)*(len+1)) - 1 #define Array_get(item_type, arr_expr, index_expr, filename, start, end) *({ \ |
