+2025-04-30 Bruno Haible <bruno@clisp.org>
+
+ clean-temp: Fix link error (regression yesterday).
+ * lib/clean-temp.c: Include hashkey-string.h.
+ (create_temp_dir): Use hashkey_string_* functions instead of
+ clean_temp_string_*.
+ * lib/clean-temp-private.h (clean_temp_string_equals,
+ clean_temp_string_hash): Remove declarations.
+ * modules/clean-temp (Depends-on): Add hashkey-string.
+
2025-04-30 Bruno Haible <bruno@clisp.org>
hashcode-named-file: Fix mistake (regression yesterday).
#define descriptors clean_temp_descriptors
extern gl_list_t /* <closeable_fd *> */ volatile descriptors;
-extern bool clean_temp_string_equals (const void *x1, const void *x2);
-extern size_t clean_temp_string_hash (const void *x);
-
extern _GL_ASYNC_SAFE int clean_temp_asyncsafe_close (struct closeable_fd *element);
extern void clean_temp_init_asyncsafe_close (void);
#include "xmalloca.h"
#include "glthread/lock.h"
#include "thread-optim.h"
+#include "hashkey-string.h"
#include "gl_xlist.h"
#include "gl_linkedhash_list.h"
#include "gl_linked_list.h"
tmpdir->cleanup_verbose = cleanup_verbose;
tmpdir->subdirs =
gl_list_create_empty (GL_LINKEDHASH_LIST,
- clean_temp_string_equals, clean_temp_string_hash,
+ hashkey_string_equals, hashkey_string_hash,
NULL, false);
tmpdir->files =
gl_list_create_empty (GL_LINKEDHASH_LIST,
- clean_temp_string_equals, clean_temp_string_hash,
+ hashkey_string_equals, hashkey_string_hash,
NULL, false);
/* Create the temporary directory. */