1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

Rename module hashcode-string to hashcode-string2.

* lib/hashcode-string2.h: Renamed from lib/hashcode-string.h.
* lib/hashcode-string2.c: Renamed from lib/hashcode-string.c.
* modules/hashcode-string2: Renamed from modules/hashcode-string.
* MODULES.html.sh: Update.
* top/maint.mk: Update.
* lib/hash-pjw.h: Update.
* modules/hash-pjw: Update.
* lib/hashcode-named-file.c: Update.
* modules/hashcode-named-file (Depends-on): Update.
* tests/test-hash.c: Update.
* modules/hash-tests (Depends-on): Update.
This commit is contained in:
Bruno Haible
2025-04-30 12:28:42 +02:00
parent f47c5f2e21
commit a7785e699a
12 changed files with 34 additions and 19 deletions

View File

@@ -1,3 +1,18 @@
2025-04-30 Bruno Haible <bruno@clisp.org>
Rename module hashcode-string to hashcode-string2.
* lib/hashcode-string2.h: Renamed from lib/hashcode-string.h.
* lib/hashcode-string2.c: Renamed from lib/hashcode-string.c.
* modules/hashcode-string2: Renamed from modules/hashcode-string.
* MODULES.html.sh: Update.
* top/maint.mk: Update.
* lib/hash-pjw.h: Update.
* modules/hash-pjw: Update.
* lib/hashcode-named-file.c: Update.
* modules/hashcode-named-file (Depends-on): Update.
* tests/test-hash.c: Update.
* modules/hash-tests (Depends-on): Update.
2025-04-30 Bruno Haible <bruno@clisp.org> 2025-04-30 Bruno Haible <bruno@clisp.org>
clean-temp: Fix link error (regression yesterday). clean-temp: Fix link error (regression yesterday).

View File

@@ -2095,7 +2095,7 @@ func_all_modules ()
func_module obstack func_module obstack
func_module obstack-printf func_module obstack-printf
func_module obstack-printf-posix func_module obstack-printf-posix
func_module hashcode-string func_module hashcode-string2
func_module hashcode-mem func_module hashcode-mem
func_module hash func_module hash
func_module hamt func_module hamt

View File

@@ -14,8 +14,8 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#include "hashcode-string.h" #include "hashcode-string2.h"
#if __GNUC__ || (__clang_major__ >= 4) #if __GNUC__ || (__clang_major__ >= 4)
# warning "The include file hash-pjw.h is deprecated. Use hashcode-string.h instead." # warning "The include file hash-pjw.h is deprecated. Use hashcode-string2.h instead."
#endif #endif

View File

@@ -24,7 +24,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "hashcode-string.h" #include "hashcode-string2.h"
#include "same-inode.h" #include "same-inode.h"
#define STREQ(a, b) (strcmp (a, b) == 0) #define STREQ(a, b) (strcmp (a, b) == 0)

View File

@@ -1,4 +1,4 @@
/* hashcode-string.c -- compute a hash value from a NUL-terminated string. /* hashcode-string2.c -- compute a hash value from a NUL-terminated string.
Copyright (C) 2001, 2003, 2006, 2009-2025 Free Software Foundation, Inc. Copyright (C) 2001, 2003, 2006, 2009-2025 Free Software Foundation, Inc.
@@ -18,7 +18,7 @@
#include <config.h> #include <config.h>
/* Specification. */ /* Specification. */
#include "hashcode-string.h" #include "hashcode-string2.h"
#include <limits.h> #include <limits.h>

View File

@@ -1,4 +1,4 @@
/* hashcode-string.h -- declaration for a simple hash function /* hashcode-string2.h -- declaration for a simple hash function
Copyright (C) 2001, 2003, 2009-2025 Free Software Foundation, Inc. Copyright (C) 2001, 2003, 2009-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify This file is free software: you can redistribute it and/or modify

View File

@@ -5,19 +5,19 @@ Status:
deprecated deprecated
Notice: Notice:
This module is deprecated. Use the module 'hashcode-string' instead. This module is deprecated. Use the module 'hashcode-string2' instead.
Files: Files:
Depends-on: Depends-on:
hashcode-string hashcode-string2
configure.ac: configure.ac:
Makefile.am: Makefile.am:
Include: Include:
"hashcode-string.h" "hashcode-string2.h"
License: License:
LGPLv2+ LGPLv2+

View File

@@ -3,7 +3,7 @@ tests/test-hash.c
tests/macros.h tests/macros.h
Depends-on: Depends-on:
hashcode-string hashcode-string2
inttostr inttostr
bool bool

View File

@@ -7,7 +7,7 @@ lib/hashcode-file.h
lib/hash-triple.h lib/hash-triple.h
Depends-on: Depends-on:
hashcode-string hashcode-string2
same-inode same-inode
bool bool

View File

@@ -2,8 +2,8 @@ Description:
Compute a hash value for a NUL-terminated string. Compute a hash value for a NUL-terminated string.
Files: Files:
lib/hashcode-string.h lib/hashcode-string2.h
lib/hashcode-string.c lib/hashcode-string2.c
lib/hash-pjw.h lib/hash-pjw.h
Depends-on: Depends-on:
@@ -11,10 +11,10 @@ Depends-on:
configure.ac: configure.ac:
Makefile.am: Makefile.am:
lib_SOURCES += hashcode-string.h hashcode-string.c lib_SOURCES += hashcode-string2.h hashcode-string2.c
Include: Include:
"hashcode-string.h" "hashcode-string2.h"
License: License:
LGPLv2+ LGPLv2+

View File

@@ -18,7 +18,7 @@
#include <config.h> #include <config.h>
#include "hash.h" #include "hash.h"
#include "hashcode-string.h" #include "hashcode-string2.h"
#include "inttostr.h" #include "inttostr.h"
#include <stdio.h> #include <stdio.h>

View File

@@ -728,8 +728,8 @@ sc_prohibit_posixver_without_use:
sc_prohibit_same_without_use: sc_prohibit_same_without_use:
@h='same.h' re='\<same_name(at)? *\(' $(_sc_header_without_use) @h='same.h' re='\<same_name(at)? *\(' $(_sc_header_without_use)
sc_prohibit_hashcode_string_without_use: sc_prohibit_hashcode_string2_without_use:
@h='hashcode-string.h' \ @h='hashcode-string2.h' \
re='\<hash_pjw\>' \ re='\<hash_pjw\>' \
$(_sc_header_without_use) $(_sc_header_without_use)