Skip to content

Change string_to_intmax() and string_to_uintmax()#48

Merged
xexyl merged 1 commit intoxexyl:masterfrom
lcn2:master
Nov 1, 2025
Merged

Change string_to_intmax() and string_to_uintmax()#48
xexyl merged 1 commit intoxexyl:masterfrom
lcn2:master

Conversation

@lcn2
Copy link
Contributor

@lcn2 lcn2 commented Nov 1, 2025

to use warn(3) so that the test_ioccc/txzchk_test.sh from the other repo won't trigger a test error due to system implementation differences with various errno values.

Updated JPARSE_REPO_VERSION to "2.5.1 2025-10-31". Updated JPARSE_UTILS_VERSION to "2.1.6 2025-10-31".

Ran make release to test the above.

to use `warn(3)` so that the `test_ioccc/txzchk_test.sh`
from [the other repo](https://github.com/ioccc-src/mkiocccentry)
won't trigger a test error due to system implementation
differences with various `errno` values.

Updated `JPARSE_REPO_VERSION` to "2.5.1 2025-10-31".
Updated `JPARSE_UTILS_VERSION` to "2.1.6 2025-10-31".

Ran `make release` to test the above.
lcn2 added a commit to ioccc-src/mkiocccentry that referenced this pull request Nov 1, 2025
The `test_ioccc/txzchk_test.sh` test for the bad test
`submit.12345678-1234-4321-abcd-1234567890ab-7.1761934326.txt`
no longer depends on the `errno` strings.

Modified `jparse/util.c` (see in the other repo,
[jparse PR 48](xexyl/jparse#48))
to use `warn(3)` instead of `warnp(3)` to avoid the
system depending errno string.

Ran `make release` to test the above.

TODO:

In regards to what `test_ioccc/txzchk_test.sh` tests:

Look over the additional bad tests to be sure that the test results are OK.

Review: `submit.12345678-1234-4321-abcd-1234567890ab-8.1761934327.txt.err`

Is the "_Warning: string_to_intmax: error converting string_"
the best way to handle "super-bogus" lengths?  Maybe it is OK?
@xexyl
Copy link
Owner

xexyl commented Nov 1, 2025

Thank you Landon. I only just saw this!

@xexyl xexyl merged commit 5463b67 into xexyl:master Nov 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants