1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-05-13 15:13:36 +00:00

getlocalename_l-unsafe: New module.

* lib/getlocalename_l-unsafe.h: New file, based on
lib/getlocalename_l.c.
* lib/getlocalename_l-unsafe.c: New file.
* lib/getlocalename_l.c: Most code moved to
lib/getlocalename_l-unsafe.c.
(getlocalename_l): Implement based on getlocalename_l_unsafe.
* m4/getlocalename_l.m4 (gl_FUNC_GETLOCALENAME_L_UNSAFE,
gl_PREREQ_GETLOCALENAME_L_UNSAFE): New macros.
(gl_FUNC_GETLOCALENAME_L_SIMPLE): Require
gl_FUNC_GETLOCALENAME_L_UNSAFE.
(gl_PREREQ_GETLOCALENAME_L_SIMPLE): Now empty.
* modules/getlocalename_l-unsafe: New file.
* modules/getlocalename_l-simple (Files): Remove
lib/localename-table.h, lib/localename-table.c,
m4/intl-thread-locale.m4.
(Depends-on): Add getlocalename_l-unsafe. Remove setlocale-messages,
setlocale-null, free-posix.
(Makefile.am): Don't compile localename-table.c.
This commit is contained in:
Bruno Haible
2025-02-22 18:11:38 +01:00
parent 6e6eb2162e
commit 81ee5a4ef3
7 changed files with 841 additions and 633 deletions

View File

@@ -3,22 +3,17 @@ getlocalename_l() function: return name of a single locale category.
Files:
lib/getlocalename_l.c
lib/localename-table.h
lib/localename-table.c
lib/struniq.h
m4/getlocalename_l.m4
m4/intl-thread-locale.m4
Depends-on:
locale-h
extensions
flexmember [test $HAVE_GETLOCALENAME_L = 0]
lock [test $HAVE_GETLOCALENAME_L = 0]
bool [test $HAVE_GETLOCALENAME_L = 0]
thread-optim [test $HAVE_GETLOCALENAME_L = 0]
setlocale-messages [test $HAVE_GETLOCALENAME_L = 0]
setlocale-null [test $HAVE_GETLOCALENAME_L = 0]
free-posix [test $HAVE_GETLOCALENAME_L = 0]
getlocalename_l-unsafe [test $HAVE_GETLOCALENAME_L = 0]
flexmember [test $HAVE_GETLOCALENAME_L = 0]
lock [test $HAVE_GETLOCALENAME_L = 0]
bool [test $HAVE_GETLOCALENAME_L = 0]
thread-optim [test $HAVE_GETLOCALENAME_L = 0]
configure.ac:
gl_FUNC_GETLOCALENAME_L_SIMPLE
@@ -31,7 +26,7 @@ gl_LOCALE_MODULE_INDICATOR([getlocalename_l])
Makefile.am:
if GL_COND_OBJ_GETLOCALENAME_L
lib_SOURCES += getlocalename_l.c localename-table.c
lib_SOURCES += getlocalename_l.c
endif
Include:

View File

@@ -0,0 +1,40 @@
Description:
getlocalename_l_unsafe() function: return name of a single locale category.
Files:
lib/getlocalename_l-unsafe.h
lib/getlocalename_l-unsafe.c
lib/localename-table.h
lib/localename-table.c
lib/struniq.h
m4/getlocalename_l.m4
m4/intl-thread-locale.m4
Depends-on:
locale-h
flexmember
lock
bool
thread-optim
setlocale-messages
setlocale-null
free-posix
configure.ac:
gl_FUNC_GETLOCALENAME_L_UNSAFE
gl_PREREQ_GETLOCALENAME_L_UNSAFE
Makefile.am:
lib_SOURCES += getlocalename_l-unsafe.c localename-table.c
Include:
"getlocalename_l-unsafe.h"
Link:
$(GETLOCALENAME_L_LIB)
License:
LGPLv2+
Maintainer:
all