Skip to content

Commit

Permalink
* iconv/gconv_builtin.c (builtin_map): Change type of size
Browse files Browse the repository at this point in the history
	information fields to int8_t.
  • Loading branch information
Ulrich Drepper committed Dec 19, 2005
1 parent 97d261a commit 477aa86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2005-12-18 Ulrich Drepper <drepper@redhat.com>

* iconv/gconv_builtin.c (builtin_map): Change type of size
information fields to int8_t.

* libio/iofwide.c (__libio_codecvt): Mark as const.
(__libio_translit): Likewise.
* libio/libioP.h (__libio_codecvt): Adjust declaraction.
Expand Down
13 changes: 7 additions & 6 deletions iconv/gconv_builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,26 @@

#include <endian.h>
#include <limits.h>
#include <stdint.h>
#include <string.h>

#include <gconv_int.h>

#include <assert.h>


static struct builtin_map
static const struct builtin_map
{
const char *name;
__gconv_fct fct;
__gconv_btowc_fct btowc_fct;

int min_needed_from;
int max_needed_from;
int min_needed_to;
int max_needed_to;
int8_t min_needed_from;
int8_t max_needed_from;
int8_t min_needed_to;
int8_t max_needed_to;

} map[] attribute_relro =
} map[] =
{
#define BUILTIN_TRANSFORMATION(From, To, Cost, Name, Fct, BtowcFct, \
MinF, MaxF, MinT, MaxT) \
Expand Down

0 comments on commit 477aa86

Please sign in to comment.