-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Clean up vasprintf() usage #4347
Conversation
derobins
commented
Apr 8, 2024
- Remove HD from vasprintf()
- Document that it's GNU/BSD, not POSIX
- Minor tidying
* Remove HD from vasprintf() * Document that it's GNU/BSD, not POSIX * Minor tidying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change to make a macro of the same name as vasprintf() is going to be confusing and is the reason we put the HD prefix in place, so that users are aware that it isn't the system/library call. I would update the comments, but leave the HD prefix for this.
If the semantics are the same, should a developer care? I can leave Like using Basically, what I'm trying to do is the same thing that POSIX did with LFS. |
Thanks for the explanation, @qkoziol! I was always curious about the long history of HD prefix. |
Closing this. We've decided to keep HD as a prefix for anything that might be a work-around. |