Commit graph

8 commits

Author SHA1 Message Date
Andrei Alexeyev
be7905d6a3
src: run upkeep 2024-05-17 04:58:47 +02:00
Andrei Alexeyev
c15934f666
dynarray: get rid of memset and add optional initializer arg to dynarray_append 2023-09-28 17:43:14 +02:00
Andrei Alexeyev
b42899cc6a
dynarray: fix dynarray_foreach_reversed
Honestly, not sure what is wrong with the original, but it breaks down
at -O2 or higher and this one doesn't.
2023-01-20 17:13:29 +01:00
Andrei Alexeyev
d32e53cb09
dynarray: add macros for reverse iteration 2023-01-18 13:26:32 +01:00
Andrei Alexeyev
a025ea5251
compat: bless C23-style auto for type inference
C23 auto standardizes GCC's __auto_type semantics, so we can start using
it already.
2023-01-08 23:48:14 +01:00
Andrei Alexeyev
8d2ee76710
replace include guards with #pragma once 2021-08-31 23:34:46 +03:00
Andrei Alexeyev
f73b1d6891
Abandon standard C conformance and require GNU extensions
Removed the use_gnu_ext option as well as fallback paths for compilers
that don't support GNU extensions. To my knowledge, none of those
compilers support C11 to a sufficient extent to compile Taisei anyway,
and those fallbacks are very poorly tested.

Pedantic warnings are now disabled, and extensions that are common to
reasonably recent versions of GCC and clang are permitted to be relied
on (list of allowed extensions TBA).
2021-08-31 23:33:16 +03:00
Andrei Alexeyev
0cbc86c66e
Add generic type-safe facility for dynamic arrays (#207)
Replace most ad-hoc opencoded dynamic arrays across the codebase
2020-04-05 05:51:00 +03:00