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 − 中吉master
parent
254d9fbadc
commit
aff04b6d4b
Loading…
Reference in new issue