Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ini: use elektra provided strcasecmp #2093
Yes, for other functions you are completely right.
But I am consider to remove elektraStrCaseCmp from the core (see doc/todo/FUTURE), the benefit of case-insensitive searches are marginal. It is more historic that we have it.
So it is okay if plugins do not use it.
Which plugins are you referring to?
Elektra provides elektraStrDup and if we hit a system that does not have strdup we would reimplement it (but even mingw seems to have it).
strdup and strcasecmp are, however, quite different things. strdup is about memory management, which is centralized in Elektra. Somewhere needs the line to be drawn. I do not think it is useful to wrap libc.
pick one from https://github.com/ElektraInitiative/libelektra/pull/2095/commits
then a lot of plugins do not use it
That is not the current behaviour, seems to be always implemented.
It might not get exported as soon as you use c99 (as it is not c99 anymore).