From 53cea75d3d378c7a71fa16ff01def1edfdf9cb55 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 30 Apr 2025 00:37:08 +0200 Subject: [PATCH] Rename module hash-triple to hashcode-file-inode. * lib/hashcode-file-inode.c: Renamed from lib/hash-triple.c. * modules/hashcode-file-inode: Renamed from modules/hash-triple. * modules/hash-triple: New file. * lib/hash-triple.h: Update. * MODULES.html.sh: Update. --- ChangeLog | 7 ++++++ MODULES.html.sh | 2 +- lib/hash-triple.h | 2 +- lib/{hash-triple.c => hashcode-file-inode.c} | 0 modules/hash-triple | 13 ++++++----- modules/hashcode-file-inode | 24 ++++++++++++++++++++ 6 files changed, 40 insertions(+), 8 deletions(-) rename lib/{hash-triple.c => hashcode-file-inode.c} (100%) create mode 100644 modules/hashcode-file-inode diff --git a/ChangeLog b/ChangeLog index a8112663f0..44e143f459 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2025-04-29 Bruno Haible + Rename module hash-triple to hashcode-file-inode. + * lib/hashcode-file-inode.c: Renamed from lib/hash-triple.c. + * modules/hashcode-file-inode: Renamed from modules/hash-triple. + * modules/hash-triple: New file. + * lib/hash-triple.h: Update. + * MODULES.html.sh: Update. + Rename module hash-triple-simple to hashcode-named-file. * lib/hashcode-named-file.c: Renamed from lib/hash-triple-simple.c. * modules/hashcode-named-file: Renamed from modules/hash-triple-simple. diff --git a/MODULES.html.sh b/MODULES.html.sh index c80ea9d7a2..baee4f95fd 100755 --- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -2870,7 +2870,7 @@ func_all_modules () func_module cycle-check func_module dev-ino func_module file-set - func_module hash-triple + func_module hashcode-file-inode func_module i-ring func_module same-inode func_end_table diff --git a/lib/hash-triple.h b/lib/hash-triple.h index 1e59be64ba..26ef7a1f05 100644 --- a/lib/hash-triple.h +++ b/lib/hash-triple.h @@ -47,7 +47,7 @@ extern bool triple_compare_ino_str (void const *x, void const *y) _GL_ATTRIBUTE_PURE; extern void triple_free (void *x); -/* Defined in module 'hash-triple'. */ +/* Defined in module 'hashcode-file-inode'. */ extern size_t triple_hash_no_name (void const *x, size_t table_size) _GL_ATTRIBUTE_PURE; extern bool triple_compare (void const *x, void const *y); diff --git a/lib/hash-triple.c b/lib/hashcode-file-inode.c similarity index 100% rename from lib/hash-triple.c rename to lib/hashcode-file-inode.c diff --git a/modules/hash-triple b/modules/hash-triple index f908f10949..5c446cbe34 100644 --- a/modules/hash-triple +++ b/modules/hash-triple @@ -1,18 +1,20 @@ Description: Hash functions for file-related triples: name, device, inode. +Status: +deprecated + +Notice: +This module is deprecated. Use the module 'hashcode-file-inode' instead. + Files: -lib/hash-triple.c Depends-on: -hashcode-named-file -same -same-inode +hashcode-file-inode configure.ac: Makefile.am: -lib_SOURCES += hash-triple.c Include: "hash-triple.h" @@ -21,4 +23,3 @@ License: GPL Maintainer: -Jim Meyering diff --git a/modules/hashcode-file-inode b/modules/hashcode-file-inode new file mode 100644 index 0000000000..87d2d41486 --- /dev/null +++ b/modules/hashcode-file-inode @@ -0,0 +1,24 @@ +Description: +Hash functions for file-related triples: name, device, inode. + +Files: +lib/hashcode-file-inode.c + +Depends-on: +hashcode-named-file +same +same-inode + +configure.ac: + +Makefile.am: +lib_SOURCES += hashcode-file-inode.c + +Include: +"hash-triple.h" + +License: +GPL + +Maintainer: +Jim Meyering -- 2.39.5