]> Savannah Git Hosting - gnulib.git/commit
stdlib: make MB_CUR_MAX usable from extern inline
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Nov 2024 19:12:21 +0000 (11:12 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Nov 2024 05:40:18 +0000 (21:40 -0800)
commitc6d15a4bc876b648dad85c53f53fd4d9a70ddee2
tree8a17fa82269d6d3b788ed846fbd14d329ef61ed4
parent9959b629b0d36f28f4ef0bbd7e0cd4fe28b63af8
stdlib: make MB_CUR_MAX usable from extern inline

* lib/stdlib.c: New file.
* modules/stdlib (Files, lib_SOURCES): Add it.
(Depends-on): Add extern-inline.
* lib/stdlib.in.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
(_GL_STDLIB_INLINE): New macro.
(gl_MB_CUR_MAX): Make it _GL_STDLIB_INLINE not static inline,
so that it can be called from extern inline functions.
Redo implementation to help GCC better optimize common expressions
like (MB_CUR_MAX == 1).
ChangeLog
lib/stdlib.c [new file with mode: 0644]
lib/stdlib.in.h
modules/stdlib