Skip to content

Commit

Permalink
* locale/loadlocale.c (_nl_value_types): Mark as const.
Browse files Browse the repository at this point in the history
	* iconv/gconv_conf.c (builtin_aliases): Likewise.
  • Loading branch information
Ulrich Drepper committed Dec 20, 2005
1 parent 8da21f9 commit aa87e91
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
2005-12-20 Ulrich Drepper <drepper@redhat.com>

* iconv/gconv_conf.c (builtin_aliases): Mark as const.
* locale/loadlocale.c (_nl_value_types): Mark as const.
* iconv/gconv_conf.c (builtin_aliases): Likewise.
* iconv/gconv_open.c (internal_trans_names): Likewise.

2005-12-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
Expand Down
15 changes: 13 additions & 2 deletions iconv/gconv_cache.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Cache handling for iconv modules.
Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 2001.
Expand Down Expand Up @@ -209,7 +209,18 @@ find_module (const char *directory, const char *filename,

/* Call the init function. */
if (result->__init_fct != NULL)
status = DL_CALL_FCT (result->__init_fct, (result));
{
__gconv_init_fct init_fct = result->__init_fct;
#ifdef PTR_DEMANGLE
PTR_DEMANGLE (init_fct);
#endif
status = DL_CALL_FCT (init_fct, (result));

#ifdef PTR_MANGLE
if (result->__btowc_fct != NULL)
PTR_MANGLE (result->__btowc_fct);
#endif
}
}

return status;
Expand Down
4 changes: 2 additions & 2 deletions locale/loadlocale.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Functions to read locale data files.
Copyright (C) 1996-2001, 2002, 2003, 2004 Free Software Foundation, Inc.
Copyright (C) 1996-2004, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
Expand Down Expand Up @@ -52,7 +52,7 @@ static const enum value_type _nl_value_type_##category[] = { NO_PAREN items };
#include "categories.def"
#undef DEFINE_CATEGORY

static const enum value_type *_nl_value_types[] =
static const enum value_type *const _nl_value_types[] =
{
#define DEFINE_CATEGORY(category, category_name, items, a) \
[category] = _nl_value_type_##category,
Expand Down

0 comments on commit aa87e91

Please sign in to comment.