/* Prototypes for local functions. */
static char *plural_lookup (struct loaded_l10nfile *domain,
unsigned long int n,
- const char *translation, size_t translation_len)
- internal_function;
+ const char *translation, size_t translation_len);
#ifdef IN_LIBGLOCALE
static const char *guess_category_value (int category,
const char *categoryname,
- const char *localename)
- internal_function;
+ const char *localename);
#else
static const char *guess_category_value (int category,
- const char *categoryname)
- internal_function;
+ const char *categoryname);
#endif
#ifdef _LIBC
# define category_to_name(category) \
_nl_category_names.str + _nl_category_name_idxs[category]
#else
-static const char *category_to_name (int category) internal_function;
+static const char *category_to_name (int category);
#endif
#if (defined _LIBC || HAVE_ICONV) && !defined IN_LIBGLOCALE
-static const char *get_output_charset (struct binding *domainbinding)
- internal_function;
+static const char *get_output_charset (struct binding *domainbinding);
#endif
in case of a memory allocation failure during conversion (only if
ENCODING != NULL resp. CONVERT == true). */
char *
-internal_function
#ifdef IN_LIBGLOCALE
_nl_find_msg (struct loaded_l10nfile *domain_file,
struct binding *domainbinding, const char *encoding,
/* Look up a plural variant. */
static char *
-internal_function
plural_lookup (struct loaded_l10nfile *domain, unsigned long int n,
const char *translation, size_t translation_len)
{
#ifndef _LIBC
/* Return string representation of locale CATEGORY. */
static const char *
-internal_function
category_to_name (int category)
{
const char *retval;
This uses values of the environment variables LC_ALL, LC_*, LANG, LANGUAGE,
and/or system-dependent defaults. */
static const char *
-internal_function
#ifdef IN_LIBGLOCALE
guess_category_value (int category, const char *categoryname,
const char *locale)
#if (defined _LIBC || HAVE_ICONV) && !defined IN_LIBGLOCALE
/* Returns the output charset. */
static const char *
-internal_function
get_output_charset (struct binding *domainbinding)
{
/* The output charset should normally be determined by the locale. But
/* Plural expression evaluation.
- Copyright (C) 2000-2003, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2000-2023 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
/* Evaluate the plural expression and return an index value. */
STATIC
unsigned long int
-internal_function
plural_eval (const struct expression *pexp, unsigned long int n)
{
switch (pexp->nargs)
the DIRNAME or WDIRNAME, LOCALE, and DOMAINNAME parameters with respect
to the currently established bindings. */
struct loaded_l10nfile *
-internal_function
_nl_find_domain (const char *dirname,
#if defined _WIN32 && !defined __CYGWIN__
const wchar_t *wdirname,
const char *__codeset);
extern void _nl_finddomain_subfreeres (void) attribute_hidden;
extern void _nl_unload_domain (struct loaded_domain *__domain)
- internal_function attribute_hidden;
+ attribute_hidden;
#else
/* Declare the exported libintl_* functions, in a way that allows us to
call them under their real name. */
/* @@ end of prolog @@ */
-#ifndef internal_function
-# define internal_function
-#endif
-
#ifndef attribute_hidden
# define attribute_hidden
#endif
#endif
char *__locale,
const char *__domainname,
- struct binding *__domainbinding)
- internal_function;
+ struct binding *__domainbinding);
void _nl_load_domain (struct loaded_l10nfile *__domain,
- struct binding *__domainbinding)
- internal_function;
+ struct binding *__domainbinding);
#ifdef IN_LIBGLOCALE
char *_nl_find_msg (struct loaded_l10nfile *domain_file,
struct binding *domainbinding, const char *encoding,
const char *msgid,
- size_t *lengthp)
- internal_function;
+ size_t *lengthp);
#else
char *_nl_find_msg (struct loaded_l10nfile *domain_file,
struct binding *domainbinding, const char *msgid,
- int convert, size_t *lengthp)
- internal_function;
+ int convert, size_t *lengthp);
#endif
/* The internal variables in the standalone libintl.a must have different
in gettextP.h.
*/
-#ifndef internal_function
-# define internal_function
-#endif
-
#ifndef LIBINTL_SHLIB_EXPORTED
# define LIBINTL_SHLIB_EXPORTED
#endif
/* Load the message catalogs specified by FILENAME. If it is no valid
message catalog do nothing. */
void
-internal_function
_nl_load_domain (struct loaded_l10nfile *domain_file,
struct binding *domainbinding)
{
#ifdef _LIBC
void
-internal_function __libc_freeres_fn_section
+__libc_freeres_fn_section
_nl_unload_domain (struct loaded_domain *domain)
{
size_t i;
# include "glthread/lock.h"
#endif
-#ifndef internal_function
-# define internal_function
-#endif
-
/* Some optimizations for glibc. */
#ifdef _LIBC
# define FEOF(fp) feof_unlocked (fp)
/* Prototypes for local functions. */
-static size_t read_alias_file (const char *fname, int fname_len)
- internal_function;
+static size_t read_alias_file (const char *fname, int fname_len);
static int extend_alias_table (void);
static int alias_compare (const struct alias_map *map1,
const struct alias_map *map2);
# endif
static size_t
-internal_function
read_alias_file (const char *fname, int fname_len)
{
FILE *fp;
};
void
-internal_function
EXTRACT_PLURAL_EXPRESSION (const char *nullentry,
const struct expression **pluralp,
unsigned long int *npluralsp)
#ifndef _PLURAL_EXP_H
#define _PLURAL_EXP_H
-#ifndef internal_function
-# define internal_function
-#endif
-
#ifndef attribute_hidden
# define attribute_hidden
#endif
# define EXTRACT_PLURAL_EXPRESSION extract_plural_expression
#endif
-extern void FREE_EXPRESSION (struct expression *exp)
- internal_function;
+extern void FREE_EXPRESSION (struct expression *exp);
extern int PLURAL_PARSE (struct parse_args *arg);
extern const struct expression GERMANIC_PLURAL attribute_hidden;
extern void EXTRACT_PLURAL_EXPRESSION (const char *nullentry,
const struct expression **pluralp,
- unsigned long int *npluralsp)
- internal_function;
+ unsigned long int *npluralsp);
#if !defined (_LIBC) && !defined (IN_LIBINTL) && !defined (IN_LIBGLOCALE)
extern unsigned long int plural_eval (const struct expression *pexp,
%{
/* Expression parsing for plural form selection.
- Copyright (C) 2000-2020 Free Software Foundation, Inc.
+ Copyright (C) 2000-2023 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
This program is free software: you can redistribute it and/or modify
%%
void
-internal_function
FREE_EXPRESSION (struct expression *exp)
{
if (exp == NULL)