* 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.
2025-04-29 Bruno Haible <bruno@clisp.org>
+ 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.
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
+++ /dev/null
-/* Hash functions for file-related triples: name, device, inode.
- Copyright (C) 2007, 2009-2025 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
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-/* written by Jim Meyering */
-
-#include <config.h>
-
-/* Specification. */
-#include "hash-triple.h"
-
-#include "same.h"
-#include "same-inode.h"
-
-/* Hash an F_triple, without considering the file name. */
-size_t
-triple_hash_no_name (void const *x, size_t table_size)
-{
- struct F_triple const *p = x;
-
- /* Ignoring the device number here should be fine. */
- return p->st_ino % table_size;
-}
-
-/* Compare two F_triple structs. */
-bool
-triple_compare (void const *x, void const *y)
-{
- struct F_triple const *a = x;
- struct F_triple const *b = y;
- return PSAME_INODE (a, b) && same_name (a->name, b->name);
-}
_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);
--- /dev/null
+/* Hash functions for file-related triples: name, device, inode.
+ Copyright (C) 2007, 2009-2025 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
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+/* written by Jim Meyering */
+
+#include <config.h>
+
+/* Specification. */
+#include "hash-triple.h"
+
+#include "same.h"
+#include "same-inode.h"
+
+/* Hash an F_triple, without considering the file name. */
+size_t
+triple_hash_no_name (void const *x, size_t table_size)
+{
+ struct F_triple const *p = x;
+
+ /* Ignoring the device number here should be fine. */
+ return p->st_ino % table_size;
+}
+
+/* Compare two F_triple structs. */
+bool
+triple_compare (void const *x, void const *y)
+{
+ struct F_triple const *a = x;
+ struct F_triple const *b = y;
+ return PSAME_INODE (a, b) && same_name (a->name, b->name);
+}
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"
GPL
Maintainer:
-Jim Meyering
--- /dev/null
+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