]> git.draconx.ca Git - cdecl99.git/commit
cdecl99: Avoid gnulib setlocale_null bits.
authorNick Bowler <nbowler@draconx.ca>
Fri, 19 Jan 2024 03:58:48 +0000 (22:58 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 19 Jan 2024 05:19:43 +0000 (00:19 -0500)
commitc5a45174d224bf1fe6510316aef835563b9db94f
treed5b6568a76444c8ea87ec4f72183f2ff9c7b9a47
parent486349a83f783742b9d148447c6119eb76d4ead0
cdecl99: Avoid gnulib setlocale_null bits.

As this is a single-threaded application which does nothing exciting
regarding locales, we shouldn't need the setlocale_null replacement.
This performs a pile of configure tests related to the thread safety
of setlocale(x, NULL), which includes possibly pulling in threading
libraries and a bunch of other nonsense.

To do this, we replace hard-locale (the only module using this) with
an inline function using setlocale directly (inline is much better,
because there is only one call site).
lib/local/lib/hard-locale.h [new file with mode: 0644]
lib/local/modules/hard-locale [new file with mode: 0644]