-
Notifications
You must be signed in to change notification settings - Fork 528
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
Auto free on zlists should use strcmp? #2204
Comments
backward compat, probably? |
I don't that would be an issue. Lines 183 to 186 in 062aeb3
Using it like that renders the So if people are using |
This issue has been automatically marked as stale because it has not had recent activity for 90 days. It will be closed if no further activity occurs within 21 days. Thank you for your contributions. |
I still think this is a proper user friendly suggestion |
If you are using
zlist_autofree
(usually for storing strings) is there any situation imaginable where you don't want to usestrcmp
as a comparator function?As
zlist_autofree
duplicates strings you can't usezlist_exists
orzlist_remove
if you don't set a comparator.So why not set the comparator automatically?
zlist_comparefn (mylist, (zlist_compare_fn *) strcmp);
The text was updated successfully, but these errors were encountered: