diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-03 19:11:32 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-03 19:11:32 +0100 |
commit | 00893e79fc62966067af1a106567db96bd170338 (patch) | |
tree | 52b35cd0b42ca28e62a2ffbecade2e13dd8332cf /lib/localename.h | |
parent | 26112352a774737e1ce5580c93654a26c1e82b39 (diff) |
New upstream version 1.2upstream/1.2
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 |