diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-12-28 17:27:05 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-12-28 17:27:05 -0500 |
| commit | cfce376f585e0cd0231e95843617f75bd65b6c07 (patch) | |
| tree | 9457de8bb9b8d0643c83cd5c08182af6a86804b7 /src/stdlib/lists.c | |
| parent | b80e21ce3d673d981e44a725c62b62563a77db9b (diff) | |
Change autoformatter to no longer allow single-line functions
Diffstat (limited to 'src/stdlib/lists.c')
| -rw-r--r-- | src/stdlib/lists.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/stdlib/lists.c b/src/stdlib/lists.c index db514671..9753cd86 100644 --- a/src/stdlib/lists.c +++ b/src/stdlib/lists.c @@ -440,10 +440,14 @@ List_t List$sample(List_t list, Int_t int_n, List_t weights, OptionalClosure_t r } public -List_t List$from(List_t list, Int_t first) { return List$slice(list, first, I_small(-1)); } +List_t List$from(List_t list, Int_t first) { + return List$slice(list, first, I_small(-1)); +} public -List_t List$to(List_t list, Int_t last) { return List$slice(list, I_small(1), last); } +List_t List$to(List_t list, Int_t last) { + return List$slice(list, I_small(1), last); +} public List_t List$by(List_t list, Int_t int_stride, int64_t padded_item_size) { @@ -554,7 +558,9 @@ bool List$has(List_t list, void *item, const TypeInfo_t *type) { } public -void List$clear(List_t *list) { *list = list->atomic ? EMPTY_ATOMIC_LIST : EMPTY_LIST; } +void List$clear(List_t *list) { + *list = list->atomic ? EMPTY_ATOMIC_LIST : EMPTY_LIST; +} public int32_t List$compare(const void *vx, const void *vy, const TypeInfo_t *type) { |
