]>
begriffs open source - libderp/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Joe Nelson [Fri, 16 Apr 2021 22:48:33 +0000 (17:48 -0500)]
List sorting and more
Joe Nelson [Fri, 16 Apr 2021 22:47:50 +0000 (17:47 -0500)]
Hide vector internals
Joe Nelson [Sat, 10 Apr 2021 04:57:29 +0000 (23:57 -0500)]
More logic for removing/clearing
Joe Nelson [Mon, 5 Apr 2021 03:47:17 +0000 (22:47 -0500)]
Initial list stuff
Joe Nelson [Mon, 5 Apr 2021 02:19:46 +0000 (21:19 -0500)]
Be less prissy about NULL
Joe Nelson [Sun, 4 Apr 2021 18:43:08 +0000 (13:43 -0500)]
Start list stuff
Joe Nelson [Sun, 4 Apr 2021 00:47:01 +0000 (19:47 -0500)]
Shave off another case
Joe Nelson [Sat, 3 Apr 2021 18:54:52 +0000 (13:54 -0500)]
v_reverse
Joe Nelson [Sat, 27 Mar 2021 18:06:49 +0000 (13:06 -0500)]
Rename conflicting "test" target in Makefile
POSIX Make doesn't allow me to mark test as .PHONY, and there's a
directory with that name which would confuse the freshness check.
Joe Nelson [Sat, 27 Mar 2021 18:03:41 +0000 (13:03 -0500)]
Remove phony clean target in Makefile
Shouldn't ever need to clean when Make knows the full set of
dependencies for each build variant.
Joe Nelson [Sat, 27 Mar 2021 17:59:55 +0000 (12:59 -0500)]
Remove binaries that snuck in
See, the derp is already strong
Joe Nelson [Sat, 27 Mar 2021 17:55:51 +0000 (12:55 -0500)]
Script to run test suite
Joe Nelson [Sat, 27 Mar 2021 17:00:58 +0000 (12:00 -0500)]
Tests aren't relevant in release variant
NDEBUG prevents the assertions from doing anything. So the default
make target is now "lib" and doesn't include tests.
Joe Nelson [Sat, 27 Mar 2021 16:59:55 +0000 (11:59 -0500)]
Let's be real
Joe Nelson [Sat, 27 Mar 2021 04:56:19 +0000 (23:56 -0500)]
Some tests
Joe Nelson [Fri, 26 Mar 2021 03:45:32 +0000 (22:45 -0500)]
Some missing null checks
Joe Nelson [Fri, 26 Mar 2021 03:31:56 +0000 (22:31 -0500)]
Set errno uniformly
Even when the return code allows the caller to determine
that they passed invalid arguments.
Joe Nelson [Fri, 26 Mar 2021 02:50:55 +0000 (21:50 -0500)]
Have v_remove operate on a single element
This way it can work like a generalized pop(), and the caller
can use/free the element as desired. Removing a range has no
clean way to return the elements to the caller, other than
packaging up the results into a new vector perhaps.
Later we could add a v_erase() that works on a range and frees
the elements, like the C++ vector::erase(). Or call it v_delete()
like Vectors in Ada.
Joe Nelson [Fri, 26 Mar 2021 01:52:30 +0000 (20:52 -0500)]
Deal with large allocations more consistently
This is kind of academic because it's unlikely that such huge amounts
of memory could ever actually be allocated. In fact, probably impossible
given sizeof(void*). However I want the numerical logic to be correct,
and we'll leave it to realloc() to determine failure.
Joe Nelson [Thu, 25 Mar 2021 04:07:22 +0000 (23:07 -0500)]
A little cleaner way to do invariant check
Joe Nelson [Thu, 25 Mar 2021 04:02:36 +0000 (23:02 -0500)]
More untested functions
Joe Nelson [Thu, 25 Mar 2021 03:33:53 +0000 (22:33 -0500)]
Keep on implementing
Joe Nelson [Thu, 25 Mar 2021 03:33:37 +0000 (22:33 -0500)]
Always check invariants in debug mode
Joe Nelson [Tue, 23 Mar 2021 04:29:11 +0000 (23:29 -0500)]
Start implementing
Joe Nelson [Tue, 23 Mar 2021 04:28:02 +0000 (23:28 -0500)]
Add const where possible
Joe Nelson [Mon, 22 Mar 2021 02:57:54 +0000 (21:57 -0500)]
Beginning with vector