]> Savannah Git Hosting - gnulib.git/commit
clean-temp-simple: Remove dependency upon xalloc, xalloc-die, xlist.
authorBruno Haible <bruno@clisp.org>
Mon, 22 Mar 2021 23:08:38 +0000 (00:08 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 22 Mar 2021 23:14:39 +0000 (00:14 +0100)
commit391c29f5bb99a4a77d19ece68e52623d4890676a
treec5ff6186b1bb38fe6c5c4216b7b33444a16833b7
parent83c222f7a65279e4e659a4caf8b85d34f91d5eeb
clean-temp-simple: Remove dependency upon xalloc, xalloc-die, xlist.

* lib/clean-temp-private.h (clean_temp_init): Change return type to
'int'.
* lib/clean-temp-simple.h (register_temporary_file): Change return type
to 'int'.
* lib/clean-temp-simple.c: Don't include xalloc.h, gl_xlist.h. Include
gl_list.h instead.
(init_failed): New variable.
(do_clean_temp_init): Set it.
(clean_temp_init): Return an error indicator.
(register_temporary_file): Invoke gl_list_nx_create_empty instead of
gl_list_create_empty. Invoke strdup instead of xstrdup. Invoke
gl_list_nx_add_first instead of gl_list_add_first. Return an error
indicator.
* lib/clean-temp.c (create_temp_dir, gen_register_open_temp): Call
xalloc_die() if clean_temp_init or register_temporary_file failed.
* modules/clean-temp-simple (Depends-on): Remove xalloc, xalloc-die,
xlist.
ChangeLog
lib/clean-temp-private.h
lib/clean-temp-simple.c
lib/clean-temp-simple.h
lib/clean-temp.c
modules/clean-temp-simple