Files
Lucas Chollet 33fc5740a2 LibC: Make ctype functions inlinable and have external linkage
Before this commit, you could either use the inlinable function by
using the macro or have the externally-linked version by first
undefining the macro and then using the function.

This commit makes all the ctype functions both inlinable and have
external linkage at the same time. To pull this trick, we provide
inlinable definitions in ctype.h and use a dedicated C feature that
forces the symbol to be emitted in the TU of ctype.c.

This could also have been achieved by using some #ifdef to hide the
inline definition in ctype.h so a C++ compiler would still emit a normal
symbol for the functions in ctype.cpp.
2026-09-24 11:53:15 +02:00
..
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00