libc: locale: flesh out an incomplete comment

Extrapolate from the context what the intention for the rest of the
comment probably was -- that the C/POSIX (and now C.UTF-8) locales may
avoid an allocation and reuse a global table.

Reviewed by:	bapt
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D41087
This commit is contained in:
Kyle Evans
2023-07-20 23:27:24 -05:00
parent 95f7b36e8f
commit b744861818
+4 -1
View File
@@ -163,7 +163,10 @@ xlocale_release(void *val)
/**
* Load functions. Each takes the name of a locale and a pointer to the data
* to be initialised as arguments. Two special values are allowed for the
* to be initialised as arguments. Three special values are allowed for the
* name of the locale: C, POSIX, and C.UTF-8. When these are used, we may
* use some statically defined tables rather than allocating memory for the
* locales' use.
*/
extern void* __collate_load(const char*, locale_t);
extern void* __ctype_load(const char*, locale_t);