[RFC v4 2/4] string: Add streq,memeq,wcseq,wmemeq,strcaseeq[_l],wcscaseeq[_l] APIs

Paul Eggert eggert@cs.ucla.edu
Mon Sep 15 06:38:10 GMT 2025


On 2025-09-14 22:55, Alejandro Colomar wrote:
>> It's gotta be a function. The macro is merely icing on the cake.
> Okay; I'll make it a function.

By the way, I didn't quite follow why we gave up on inline functions. As 
a general rule, inline functions work better than function macros these 
days, for the usual reasons.

If we gave up on inline functions merely because extern inline functions 
can't call static functions in C99, there are standard ways to handle 
that; see, for example, Gnulib's extern-inline module which has been in 
use since 2012 and which ports even to pre-C99 compilers.

If we gave up for some other reason, I missed it.


More information about the Libc-alpha mailing list