Avril
033ec9e902
Added human-readable compilation date in usage output.
...
Remove verbatim unix timestamp compilation date in usage output on release builds.
Fortune for naka's current commit: Blessing − 吉
3 years ago
Avril
d82407951a
Mapping +unmappign haystacks from cl.
...
TODO: On mapping failure of haystack, unmap the previous ones before exiting `map_haystacks()`
Fortune for naka's current commit: Middle blessing − 中吉
3 years ago
Avril
aff04b6d4b
Reworked `PROG_RET_` to return negatives on internal, memory, or file/mapping failures, and to return the first haystack number that failed to match instead as return code (haystack numbers start at 1, since 0 is the needle). If all matched, return 0 from main().
...
Deprecated `PROG_RET_MAP_HAYSTACK_FAILED`
XXX: Currently `PROG_RET_MATCH_HAYSTACK_N_FAILED(n)` returns `n` verbatim (casted to `int`). Maybe we should ensure the number is nonzero in the macro? Or rework haystack numbers to start at 0 and have this macro add 1 to `n`? The former seems easier.
Fortune for naka's current commit: Middle blessing − 中吉
3 years ago
Avril
254d9fbadc
Added `cmp_find()` `cmp_find_many()` in "comp.c"/"comp.h".
...
Added main TODOs in main(), regarding setting up threadpool, dispatches, consolidation, process return value on match fails, etc.
Fortune for naka's current commit: Small blessing − 小吉
3 years ago
Avril
b694d73167
Added "useful" program error return codes `PROG_RET_` in "project.h". These can be used to specify which operation failed and on which input.
...
(Success is still main()->return 0;/exit(0); though.)
Fortune for naka's current commit: Future blessing − 末吉
3 years ago
Avril
f056d09c2e
Added `--help` option
...
Fortune for naka's current commit: Small curse − 小凶
3 years ago
Avril
a8e38d292e
Added Makefile re-export (project.h) `PROG_COMPILED_TIMESTAMP` (u64): UTC unix timestamp (seconds) when TU was compiled.
...
Show "compiled when" timestamp in usage messaged. TODO: Convert to human-readable UTC time.
Fortune for naka's current commit: Blessing − 吉
3 years ago
Avril
66f9b0ad55
Added Makefile exports for metadata, and import header that creates better-useable C types from them
...
Fortune for naka's current commit: Half blessing − 半吉
3 years ago