-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
RFC: Deprecate r_str_new and r_str_dup #20959
Comments
its anoying to my eyes. but not really a blocker, moving forward |
Hi, I'd like to contribute to this issue, please guide me where to start. |
As long as this is an abi breaking change this can't be done until we reach 5.9.9. What can be done before:
What can't be done:
|
Feel free to join the discord for further discussions |
Hey, is this issue still not resolved? I can take it if you don't mind. IMHO, being more careful is more important than being less, so I would opt for creating a new As far as I understand, the Moreover, I've found some syntax mistakes with invoking |
thank you @satk0 !! |
It can be tricky for rmalloc as strdup uses libc's malloc and r_str could use r_malloc alternative, causing inconsistencies between new/free and overcomplicates the logic. so maybe we can just move forward and just use strdup and deprecate those.
About r_str_new that could be kept for consistency with r_str_newf()
strdup() is available everywhere and works the same.
The text was updated successfully, but these errors were encountered: