1 --- glibc-2.3.4/iconv/iconvconfig.c.orig 2004-12-20 00:23:42.000000000 +0100
2 +++ glibc-2.3.4/iconv/iconvconfig.c 2005-02-20 11:43:58.447698464 +0100
5 (following last entry with step count 0)
8 +static struct hash_entry *hash_table;
9 +static size_t hash_size;
11 +/* Function to insert the names. */
12 +static void name_insert (const void *nodep, VISIT value, int level)
18 + if (value != leaf && value != postorder)
21 + name = *(struct name **) nodep;
22 + idx = name->hashval % hash_size;
23 + hval2 = 1 + name->hashval % (hash_size - 2);
25 + while (hash_table[idx].string_offset != 0)
26 + if ((idx += hval2) >= hash_size)
29 + hash_table[idx].string_offset = strtaboffset (name->strent);
31 + assert (name->module_idx != -1);
32 + hash_table[idx].module_idx = name->module_idx;
40 size_t string_table_size;
41 struct gconvcache_header header;
42 - struct hash_entry *hash_table;
44 struct module_entry *module_table;
46 char *cur_extra_table;
47 @@ -1034,31 +1060,6 @@
48 char tmpfname[(output_file == NULL ? sizeof finalname : output_file_len + 1)
49 + strlen (".XXXXXX")];
51 - /* Function to insert the names. */
53 - name_insert (const void *nodep, VISIT value, int level)
59 - if (value != leaf && value != postorder)
62 - name = *(struct name **) nodep;
63 - idx = name->hashval % hash_size;
64 - hval2 = 1 + name->hashval % (hash_size - 2);
66 - while (hash_table[idx].string_offset != 0)
67 - if ((idx += hval2) >= hash_size)
70 - hash_table[idx].string_offset = strtaboffset (name->strent);
72 - assert (name->module_idx != -1);
73 - hash_table[idx].module_idx = name->module_idx;
76 /* Open the output file. */
77 if (output_file == NULL)