From 00893e79fc62966067af1a106567db96bd170338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 3 Mar 2024 19:11:32 +0100 Subject: New upstream version 1.2 --- lib/localename.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'lib/localename.h') 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 -- cgit v1.2.3