diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-03 18:16:33 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-03 18:16:33 -0500 |
| commit | 23478e7036fe9fbee17263e52d5d8a37adce1c95 (patch) | |
| tree | 7c588c0f7b7ac2f81dbbd960a8f70b197613b229 /builtins/array.h | |
| parent | 8fab88c56f95c03ffcb4be178f5dbb21b239d95e (diff) | |
Rename as_str -> as_text
Diffstat (limited to 'builtins/array.h')
| -rw-r--r-- | builtins/array.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtins/array.h b/builtins/array.h index 021166b9..4706c227 100644 --- a/builtins/array.h +++ b/builtins/array.h @@ -12,7 +12,7 @@ const array_t $arr = x; int64_t $index = (int64_t)(i); \ int64_t $off = $index + ($index < 0) * ($arr.length + 1) - 1; \ if (__builtin_expect($off < 0 || $off >= $arr.length, 0)) \ - fail_source(filename, start, end, "Invalid array index: %r (array has length %ld)\n", Int__as_str(&$index, USE_COLOR, NULL), $arr.length); \ + fail_source(filename, start, end, "Invalid array index: %r (array has length %ld)\n", Int__as_text(&$index, USE_COLOR, NULL), $arr.length); \ (type*)($arr.data + $arr.stride * $off);}) #define $Array_get_unchecked(type, x, i) *({ const array_t $arr = x; int64_t $index = (int64_t)(i); \ int64_t $off = $index + ($index < 0) * ($arr.length + 1) - 1; \ @@ -53,6 +53,6 @@ array_t Array__concat(array_t x, array_t y, const TypeInfo *type); uint32_t Array__hash(const array_t *arr, const TypeInfo *type); int32_t Array__compare(const array_t *x, const array_t *y, const TypeInfo *type); bool Array__equal(const array_t *x, const array_t *y, const TypeInfo *type); -CORD Array__as_str(const array_t *arr, bool colorize, const TypeInfo *type); +CORD Array__as_text(const array_t *arr, bool colorize, const TypeInfo *type); // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
