-/* Copyright (C) 1998-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
+ <https://www.gnu.org/licenses/>. */
#ifndef _WCSMBSLOAD_H
#define _WCSMBSLOAD_H 1
/* Load conversion functions for the currently selected locale. */
extern void __wcsmbs_load_conv (struct __locale_data *new_category)
- internal_function;
+ attribute_hidden;
/* Clone the current `__wcsmbs_load_conv' value. */
extern void __wcsmbs_clone_conv (struct gconv_fcts *copy)
- internal_function;
+ attribute_hidden;
/* Find the conversion functions for converting to and from NAME. */
extern int __wcsmbs_named_conv (struct gconv_fcts *copy, const char *name)
- internal_function;
+ attribute_hidden;
/* Function used for the `private.cleanup' hook. */
-extern void _nl_cleanup_ctype (struct __locale_data *)
- internal_function attribute_hidden;
+extern void _nl_cleanup_ctype (struct __locale_data *) attribute_hidden;
#include <iconv/gconv_int.h>
static inline const struct gconv_fcts *
get_gconv_fcts (struct __locale_data *data)
{
- if (__builtin_expect (data->private.ctype == NULL, 0))
+ if (__glibc_unlikely (data->private.ctype == NULL))
{
- if (__builtin_expect (data == &_nl_C_LC_CTYPE, 0))
+ if (__glibc_unlikely (data == &_nl_C_LC_CTYPE))
return &__wcsmbs_gconv_fcts_c;
__wcsmbs_load_conv (data);
}