mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
mem-hash-map: Fix a left-over from 2001-11-20.
* gnulib-local/lib/mem-hash-map.h (hash_init): Fix comment. * gnulib-local/lib/mem-hash-map.c (hash_init): Likewise. * gettext-tools/src/msgl-fsearch.c (message_fuzzy_index_alloc): Don't test the return value of hash_init.
This commit is contained in:
parent
b29e8f6b07
commit
7fbc0e7125
@ -216,8 +216,7 @@ message_fuzzy_index_alloc (const message_list_ty *mlp,
|
||||
findex->iterator = po_charset_character_iterator (canon_charset);
|
||||
|
||||
/* Setup hash table. */
|
||||
if (hash_init (&findex->gram4, 10 * count) < 0)
|
||||
xalloc_die ();
|
||||
hash_init (&findex->gram4, 10 * count);
|
||||
for (j = 0; j < count; j++)
|
||||
{
|
||||
message_ty *mp = mlp->item[j];
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/* hash - implement simple hashing table where the keys are memory blocks.
|
||||
Copyright (C) 1994-1995, 2000-2006, 2018, 2020 Free Software Foundation, Inc.
|
||||
Copyright (C) 1994-1995, 2000-2006, 2018, 2020, 2023 Free Software Foundation, Inc.
|
||||
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, October 1994.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
@ -84,7 +84,7 @@ next_prime (unsigned long int seed)
|
||||
|
||||
/* Initialize a hash table. INIT_SIZE > 1 is the initial number of available
|
||||
entries.
|
||||
Return 0 upon successful completion, -1 upon memory allocation error. */
|
||||
Return 0 always. */
|
||||
int
|
||||
hash_init (hash_table *htab, unsigned long int init_size)
|
||||
{
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995, 2000-2003, 2005-2006 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995, 2000-2003, 2005-2006, 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
|
||||
@ -36,7 +36,7 @@ hash_table;
|
||||
|
||||
/* Initialize a hash table. INIT_SIZE > 1 is the initial number of available
|
||||
entries.
|
||||
Return 0 upon successful completion, -1 upon memory allocation error. */
|
||||
Return 0 always. */
|
||||
extern int hash_init (hash_table *htab, unsigned long int init_size);
|
||||
|
||||
/* Delete a hash table's contents.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user