fix potentially uninitialized var
obj_array_index: optimize head/tail access
We already store the head and tail position so we can optimize that a
little bit.
libpkgconf: remove dubious check for found deps
After refactoring make_obj gcc complained that `str` was uninitialized.
Upon closer inspection, I'm not sure that this code was working. I
think it was intended to dedup libs but str may very well have been
uninitialized.
obj_array_index: use return not outvar
make_obj: use return value
make_obj had a longstanding ergonomic issue where it required you to
pass a pointer to an obj in and it filled it out, when it could have
just returned the value.
add STR_static() to work around compiler warning
It seems that just having { .s = "Hello", .len = sizeof("Hello") - 1 }
is fine, but prepending (struct str) makes some compilers complain that
it is no longer a compile-time constant expression. So add an
additional macro for str initialization that just lacks the (struct str)
part.
add docs for string internals in string.h
rename WKSTR to STR / STRL
rename SBUF to TSTR
TSTR stands for Temporary-STRing which is a slightly better name than
SBUF which doesn't give any indication of what the string's lifetime is.
samu: disable -j 0
muon samu preallocates the array of jobs, which is incompatible with
-j0. Since this feature is relatively niche just disable it for now
rather than refactoring the job array.
Reference: https://todo.sr.ht/~lattis/muon/136
samu samu_xreallocarray: assert on failure
Callers expect samu_xreallocarray to never fail, so assert that it
doesn't.
muon options in build dir shows opts for all projs
add parens around wk in macro
remove --mkpath since it didn't work
attempt to fix releasing to a new version
There is still a race condition. Other CI steps will fail if this one
doesn't finish first
don't deploy md5s for linux binaries
They are hosted right alongside the binaries so I don't think they are
providing any real security benifit. Plus none of the other artifacts
have checksums.
alpine CI - we no longer have to build twice