* gnulib-local/lib/mem-hash-map.h (hash_find_entry): Mark htab as a 'const' pointer.
* gnulib-local/lib/mem-hash-map.c (lookup, hash_find_entry): Likewise.
* gettext-tools/src/message.h (message_list_search): Mark mlp as a 'const' pointer.
* gettext-tools/src/message.c (message_list_search): Likewise.
* gettext-tools/src/msgl-ascii.h (is_ascii_string_list): Mark slp as a 'const' pointer.
(is_ascii_message): Mark mp as a 'const' pointer.
(is_ascii_message_list): Mark mlp as a 'const' pointer.
(is_ascii_msgdomain_list): Mark mdlp as a 'const' pointer.
* gettext-tools/src/msgl-ascii.c (is_ascii_string_list): Mark slp as a 'const' pointer.
(is_ascii_message): Mark mp as a 'const' pointer.
(is_ascii_message_list): Mark mlp as a 'const' pointer.
(is_ascii_msgdomain_list): Mark mdlp as a 'const' pointer.
* gettext-tools/src/msgl-ofn.h (message_has_filenames_with_spaces): Mark mp as a 'const' pointer.
(message_list_has_filenames_with_spaces): Mark mlp as a 'const' pointer.
(msgdomain_list_has_filenames_with_spaces): Mark mdlp as a 'const' pointer.
* gettext-tools/src/msgl-ofn.c (message_has_filenames_with_spaces): Mark mp as a 'const' pointer.
(message_list_has_filenames_with_spaces): Mark mlp as a 'const' pointer.
(msgdomain_list_has_filenames_with_spaces): Mark mdlp as a 'const' pointer.
* gettext-tools/src/msgl-check.h (check_message_list): Mark mlp as a 'const' pointer.
* gettext-tools/src/msgl-check.c (check_plural, check_message_list): Likewise.
message_ty *
-message_list_search (message_list_ty *mlp,
+message_list_search (const message_list_ty *mlp,
const char *msgctxt, const char *msgid)
{
if (mlp->use_hashtable)
extern message_list_ty *
message_list_copy (message_list_ty *mlp, int copy_level);
extern message_ty *
- message_list_search (message_list_ty *mlp,
+ message_list_search (const message_list_ty *mlp,
const char *msgctxt, const char *msgid);
/* Return the message in MLP which maximizes the fuzzy_search_goal_function.
Only messages with a fuzzy_search_goal_function > FUZZY_THRESHOLD are
/* Message list test for ASCII character set.
- Copyright (C) 2001-2002, 2005-2006, 2023 Free Software Foundation, Inc.
+ Copyright (C) 2001-2024 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
}
bool
-is_ascii_string_list (string_list_ty *slp)
+is_ascii_string_list (const string_list_ty *slp)
{
size_t i;
}
bool
-is_ascii_message (message_ty *mp)
+is_ascii_message (const message_ty *mp)
{
const char *p = mp->msgstr;
const char *p_end = p + mp->msgstr_len;
}
bool
-is_ascii_message_list (message_list_ty *mlp)
+is_ascii_message_list (const message_list_ty *mlp)
{
size_t j;
}
bool
-is_ascii_msgdomain_list (msgdomain_list_ty *mdlp)
+is_ascii_msgdomain_list (const msgdomain_list_ty *mdlp)
{
size_t k;
/* Message list test for ASCII character set.
- Copyright (C) 2001-2003, 2005, 2023 Free Software Foundation, Inc.
+ Copyright (C) 2001-2024 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
extern bool
is_ascii_string_desc (string_desc_t string);
extern bool
- is_ascii_string_list (string_list_ty *slp);
+ is_ascii_string_list (const string_list_ty *slp);
extern bool
- is_ascii_message (message_ty *mp);
+ is_ascii_message (const message_ty *mp);
extern bool
- is_ascii_message_list (message_list_ty *mlp);
+ is_ascii_message_list (const message_list_ty *mlp);
extern bool
- is_ascii_msgdomain_list (msgdomain_list_ty *mdlp);
+ is_ascii_msgdomain_list (const msgdomain_list_ty *mdlp);
#ifdef __cplusplus
If no errors, returns in *DISTRIBUTION information about the plural_eval
values distribution. */
static int
-check_plural (message_list_ty *mlp,
+check_plural (const message_list_ty *mlp,
int ignore_untranslated_messages,
int ignore_fuzzy_messages,
struct plural_distribution *distributionp,
/* Perform all checks on a message list.
Return the number of errors that were seen. */
int
-check_message_list (message_list_ty *mlp,
+check_message_list (const message_list_ty *mlp,
int ignore_untranslated_messages,
int ignore_fuzzy_messages,
int check_newlines,
/* Perform all checks on a message list.
Return the number of errors that were seen. */
-extern int check_message_list (message_list_ty *mlp,
+extern int check_message_list (const message_list_ty *mlp,
int ignore_untranslated_messages,
int ignore_fuzzy_messages,
int check_newlines,
/* Message list test for ordinary file names.
- Copyright (C) 2021 Free Software Foundation, Inc.
+ Copyright (C) 2021-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
bool
-message_has_filenames_with_spaces (message_ty *mp)
+message_has_filenames_with_spaces (const message_ty *mp)
{
size_t n = mp->filepos_count;
size_t i;
}
bool
-message_list_has_filenames_with_spaces (message_list_ty *mlp)
+message_list_has_filenames_with_spaces (const message_list_ty *mlp)
{
size_t j;
}
bool
-msgdomain_list_has_filenames_with_spaces (msgdomain_list_ty *mdlp)
+msgdomain_list_has_filenames_with_spaces (const msgdomain_list_ty *mdlp)
{
size_t k;
/* Message list test for ordinary file names.
- Copyright (C) 2021 Free Software Foundation, Inc.
+ Copyright (C) 2021-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/* Tests whether some of the file names in the message locations has spaces. */
extern bool
- message_has_filenames_with_spaces (message_ty *mp);
+ message_has_filenames_with_spaces (const message_ty *mp);
extern bool
- message_list_has_filenames_with_spaces (message_list_ty *mlp);
+ message_list_has_filenames_with_spaces (const message_list_ty *mlp);
extern bool
- msgdomain_list_has_filenames_with_spaces (msgdomain_list_ty *mdlp);
+ msgdomain_list_has_filenames_with_spaces (const msgdomain_list_ty *mdlp);
#ifdef __cplusplus
/* hash - implement simple hashing table where the keys are memory blocks.
- Copyright (C) 1994-1995, 2000-2006, 2018, 2020, 2023 Free Software Foundation, Inc.
+ Copyright (C) 1994-2024 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
Return the index of the entry, if present, or otherwise the index a free
entry where it could be inserted. */
static size_t
-lookup (hash_table *htab,
+lookup (const hash_table *htab,
const void *key, size_t keylen,
unsigned long int hval)
{
/* Look up the value of a key in the given table.
If found, return 0 and set *RESULT to it. Otherwise return -1. */
int
-hash_find_entry (hash_table *htab, const void *key, size_t keylen,
+hash_find_entry (const hash_table *htab, const void *key, size_t keylen,
void **result)
{
hash_entry *table = htab->table;
-/* Copyright (C) 1995, 2000-2003, 2005-2006, 2023 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2024 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
/* Look up the value of a key in the given table.
If found, return 0 and set *RESULT to it. Otherwise return -1. */
-extern int hash_find_entry (hash_table *htab,
+extern int hash_find_entry (const hash_table *htab,
const void *key, size_t keylen,
void **result);