]> git.seodisparate.com/gitweb - SimpleArchiver/log
SimpleArchiver
9 months agoFix unit test for priority heap
Stephen Seo [Sun, 30 Jun 2024 11:02:47 +0000 (20:02 +0900)]
Fix unit test for priority heap

9 months agoChange priority_heap to accept "less_fn"
Stephen Seo [Sun, 30 Jun 2024 08:29:24 +0000 (17:29 +0900)]
Change priority_heap to accept "less_fn"

This allows for reverse order in the priority heap by using a "more_fn"
in place of a "less fn".

9 months agoMinor fix to doc comment about priority heap
Stephen Seo [Sun, 30 Jun 2024 06:35:27 +0000 (15:35 +0900)]
Minor fix to doc comment about priority heap

9 months agoImpl. priority heap, minor tweaks/fixes
Stephen Seo [Sun, 30 Jun 2024 06:32:17 +0000 (15:32 +0900)]
Impl. priority heap, minor tweaks/fixes

Implemented a priority heap.

Added tests for the priority heap.

Add a "default" lcg generator function.

Tweak hash_map to use the default lcg generator function.

`clang-format`.

9 months agoAdd `platforms.h` header to determine platform
Stephen Seo [Sat, 29 Jun 2024 07:52:17 +0000 (16:52 +0900)]
Add `platforms.h` header to determine platform

The platforms.h header will allow for using/implementing OS-specific
code that will differ based on the platform the program is compiled for.

9 months agoAdd action/workflow to run unit tests
Stephen Seo [Sat, 29 Jun 2024 07:13:15 +0000 (16:13 +0900)]
Add action/workflow to run unit tests

Currently only runs `test_datastructures`.

9 months agoUpdate README.md
Stephen Seo [Sat, 29 Jun 2024 07:00:59 +0000 (16:00 +0900)]
Update README.md

10 months agoFix cosmopolitan/Makefile missing files
Stephen Seo [Fri, 28 Jun 2024 10:35:06 +0000 (19:35 +0900)]
Fix cosmopolitan/Makefile missing files

10 months agoFix hashing in hash_map (hopefully finally)
Stephen Seo [Fri, 28 Jun 2024 09:19:29 +0000 (18:19 +0900)]
Fix hashing in hash_map (hopefully finally)

10 months agoFix hash_map hashing (hopefully the final time)
Stephen Seo [Fri, 28 Jun 2024 09:17:38 +0000 (18:17 +0900)]
Fix hash_map hashing (hopefully the final time)

10 months agoFix hashing in hash_map
Stephen Seo [Fri, 28 Jun 2024 09:15:40 +0000 (18:15 +0900)]
Fix hashing in hash_map

10 months agoRevert "Minor additions to unit test of data structures"
Stephen Seo [Fri, 28 Jun 2024 08:40:29 +0000 (17:40 +0900)]
Revert "Minor additions to unit test of data structures"

This reverts commit f1bab48fb5a296c55c2ba092474c9f351fcde045.

Unnecessary checks were added that were already checked by the preceding
for statement.

10 months agoMinor additions to unit test of data structures
Stephen Seo [Fri, 28 Jun 2024 08:38:43 +0000 (17:38 +0900)]
Minor additions to unit test of data structures

10 months agoImpl. hash_map
Stephen Seo [Fri, 28 Jun 2024 08:31:34 +0000 (17:31 +0900)]
Impl. hash_map

Also implemented the linear congruential generator algorithm for
generating hash values for the hash_map.

Tweaks to linked_list api to support "check functions" with supplied
user data.

10 months agoImplement a linked list data structure
Stephen Seo [Fri, 28 Jun 2024 04:54:38 +0000 (13:54 +0900)]
Implement a linked list data structure

10 months agoCreate Makefile for building with cosmocc
Stephen Seo [Fri, 28 Jun 2024 04:02:26 +0000 (13:02 +0900)]
Create Makefile for building with cosmocc

Resolves #9.

10 months agoUpdate README.md
Stephen Seo [Thu, 27 Jun 2024 08:21:59 +0000 (17:21 +0900)]
Update README.md

10 months agoRename executable to lowercase
Stephen Seo [Thu, 27 Jun 2024 08:20:46 +0000 (17:20 +0900)]
Rename executable to lowercase

10 months agoRemove unnecessary prints, `clang-format`
Stephen Seo [Thu, 27 Jun 2024 04:30:18 +0000 (13:30 +0900)]
Remove unnecessary prints, `clang-format`

10 months agoFix invalid memory usage bug causing invalid free
Stephen Seo [Thu, 27 Jun 2024 04:28:53 +0000 (13:28 +0900)]
Fix invalid memory usage bug causing invalid free

realloc(...) was not used propertly. The number of items to be
reallocated was specified, but not the size of each item.

10 months agoImpl. parser (TODO Fix invalid free crash) stream_03
Stephen Seo [Thu, 27 Jun 2024 02:57:29 +0000 (11:57 +0900)]
Impl. parser (TODO Fix invalid free crash)

During testing, having at least three positional args cause an invalid
free crash. Should be investigated and fixed.

10 months agoUpdate file_format.md
Stephen Seo [Thu, 27 Jun 2024 01:36:06 +0000 (10:36 +0900)]
Update file_format.md

Add support for per-file compressing by storing the
compressor/decompressor commands in the per-file header part of the
.simplearchive.

10 months agoDefine file format (version 0 file format)
Stephen Seo [Thu, 27 Jun 2024 01:14:10 +0000 (10:14 +0900)]
Define file format (version 0 file format)

Resolves #1.

10 months agoAdd LICENSE, README.md, and license info in source
Stephen Seo [Wed, 26 Jun 2024 10:19:21 +0000 (19:19 +0900)]
Add LICENSE, README.md, and license info in source

10 months agoCreate skeleton C project
Stephen Seo [Wed, 26 Jun 2024 08:57:23 +0000 (17:57 +0900)]
Create skeleton C project