Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a ThinCStr type #1730

Open
workingjubilee opened this issue Jun 3, 2024 · 1 comment
Open

Use a ThinCStr type #1730

workingjubilee opened this issue Jun 3, 2024 · 1 comment
Labels

Comments

@workingjubilee
Copy link
Member

workingjubilee commented Jun 3, 2024

Relatively simple.

Pick or write a ThinCStr type (or Thin<CStr>, whatever). and rewrite most/all *const c_char args in pgrx-pg-sys bindings to take it. In practice they generally want to be pointers to null terminated strings.

@workingjubilee
Copy link
Member Author

workingjubilee commented Jun 3, 2024

more ambitious: get upstream to finally implement size_of::<&CStr>() == size_of::<*const c_char>() like they have been threatening to do Forever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant