Skip to content

Remove the ctype module and use core::ffi.#39

Merged
thejpster merged 6 commits into
mainfrom
use-ffi-types
Jan 4, 2026
Merged

Remove the ctype module and use core::ffi.#39
thejpster merged 6 commits into
mainfrom
use-ffi-types

Conversation

@thejpster

@thejpster thejpster commented Jan 4, 2026

Copy link
Copy Markdown
Member

The CStringIter was unsound, and the other type aliases didn't aid readability of the code.

This also means that our CChar type now matches core::ffi::c_char, which might be a switch from signed char to unsigned char (or vice versa) on some platforms.

The use of c"" literals raises the MSRV to 1.77.

Fixes #36

The CStringIter was unsound, and the other type aliases didn't aid
readability of the code.

This also means that our CChar type now matches core::ffi::c_char, which
might be a switch from signed char to unsigned char (or vice versa) on
some platforms.

The use of c"" literals raises the MSRV to 1.77.
Panicking in a signal handler is a non-unwindable panic that cannot be
caught. So replace the handlers for any tests we do.
Comment thread src/itoa.rs Outdated
Comment thread src/snprintf.rs Outdated
@thejpster thejpster added this pull request to the merge queue Jan 4, 2026
Merged via the queue into main with commit 0d5e799 Jan 4, 2026
14 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.

Memory safety issue in CStringIter with invalid pointers

2 participants