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

Add nvim_oxi::string! macro that produces nvim_oxi::Strings #186

Merged
merged 4 commits into from
Nov 1, 2024

Conversation

SCJangra
Copy link
Contributor

Closes #184

crates/types/src/string.rs Outdated Show resolved Hide resolved
crates/types/src/string.rs Outdated Show resolved Hide resolved
crates/types/src/string.rs Outdated Show resolved Hide resolved
crates/types/src/string.rs Show resolved Hide resolved
crates/types/src/string.rs Outdated Show resolved Hide resolved
crates/types/src/string.rs Outdated Show resolved Hide resolved
@SCJangra
Copy link
Contributor Author

SCJangra commented Oct 1, 2024

@noib3 I've pushed the changes, let me if anything else needs to be updated.

@noib3
Copy link
Owner

noib3 commented Oct 24, 2024

Hi, sorry for the long delay.

If you still want to finish the PR, I'd merge it after this is addressed and all the commits are squashed.

types: rename `size` field to `len` in `String`

types: remove `#[repr(C)]` from `StringBuilder`

types: use the `String` type itself instead of redefining the fields in
`StringBuilder`

types: a less conservative reallocation for `StringBuilder`

types: update comment on deallocation in `StringBuilder`

types(string): keep the size of allocation in string to a power of 2.
@SCJangra
Copy link
Contributor Author

Hi, sorry for the long delay.

No problem

I'd merge it after #186 (comment) is addressed and all the commits are squashed.

Done

@noib3 noib3 merged commit 2fc7313 into noib3:main Nov 1, 2024
12 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.

A format! like macro to create nvim_oxi::Strings
2 participants