Skip to content

Add rules for stdlib, rustls, and stdio#183

Open
lucic71 wants to merge 3 commits into
Cpp2Rust:masterfrom
lucic71:rustls
Open

Add rules for stdlib, rustls, and stdio#183
lucic71 wants to merge 3 commits into
Cpp2Rust:masterfrom
lucic71:rustls

Conversation

@lucic71
Copy link
Copy Markdown
Contributor

@lucic71 lucic71 commented Jun 4, 2026

I also had to add support in Mapper for rules of typedef'ed scalars.

For exmaple:

typedef int rustls_io_result;
int -> ::rustls_ffi::rustls_io_result

Would clash with the already-existing rule of int because ToString strips the typedef and returns int instead of rustls_io_result. GetNameOfScalarTypedef returns rustls_io_result and the mapping becomes:

typedef int rustls_io_result;
rustls_io_result -> ::rustls_ffi::rustls_io_result

Initially I wanted to modify ToString to not strip the typedef, but that's a bigger change than I expected because it affects typedefs as size_t, uint32_t, etc.

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.

1 participant