diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-24 08:54:48 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-24 08:54:48 +0100 |
commit | 163a663518f33bab48b28431972e580b366b4d49 (patch) | |
tree | f518ffabaca4a0b93f0103d617e803792d3b0b43 /lib/localename.h | |
parent | 1b3a8d5ad2ea2f099d514d9dd51ebf926a628076 (diff) | |
parent | dd0000f7e25abe6c28d4329d324fd7fcab54094f (diff) |
Merge branch 'release/debian/1.2-1'HEADdebian/1.2-1master
Diffstat (limited to 'lib/localename.h')
-rw-r--r-- | lib/localename.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/localename.h b/lib/localename.h index fd110818..06906143 100644 --- a/lib/localename.h +++ b/lib/localename.h @@ -1,5 +1,5 @@ /* Determine name of the currently selected locale. - Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -17,6 +17,11 @@ #ifndef _GL_LOCALENAME_H #define _GL_LOCALENAME_H +/* This file uses _GL_ATTRIBUTE_CONST, HAVE_CFPREFERENCESCOPYAPPVALUE. */ +#if !_GL_CONFIG_H_INCLUDED + #error "Please include config.h first." +#endif + #ifdef __cplusplus extern "C" { #endif @@ -91,6 +96,19 @@ extern const char * gl_locale_name_default (void) #endif ; + +/* These functions with the '_unsafe' suffix are like the functions without + this suffix, above, except that the result is not statically allocated, but + instead only valid in the current thread, until the next uselocale(), + setlocale(), newlocale(), or freelocale() call. */ +extern const char * gl_locale_name_unsafe (int category, + const char *categoryname); +extern const char * gl_locale_name_thread_unsafe (int category, + const char *categoryname); +extern const char * gl_locale_name_posix_unsafe (int category, + const char *categoryname); + + #ifdef __cplusplus } #endif |