]> git.eshelyaron.com Git - emacs.git/commit
Adjust to recent Gnulib changes
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Dec 2020 09:38:31 +0000 (01:38 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Dec 2020 09:40:39 +0000 (01:40 -0800)
commitec8a17e938c3ef213709ea6b6b3e565333a9c508
tree1558c79f3c269d9ae1b068bb7c66fce04707b32c
parentb8b17038e140fe215a76f2e899c00b9b95614886
Adjust to recent Gnulib changes

The latest Gnulib merge brought in free-posix, which causes 'free'
to preserve errno.  This lets us simplify some Emacs code that
calls 'free'.
* admin/merge-gnulib (GNULIB_MODULES): Add free-posix.
This module is pulled in by canonicalize-lgpl anyway,
so we might as well rely on it.
* lib-src/emacsclient.c (get_current_dir_name):
Sync better with src/sysdep.c.
* lib-src/etags.c (process_file_name, etags_mktmp):
* lib-src/update-game-score.c (unlock_file):
* src/fileio.c (file_accessible_directory_p):
* src/sysdep.c (get_current_dir_name_or_unreachable):
Simplify by assuming that 'free' preserves errno.
* src/alloc.c (malloc_unblock_input):
Preserve errno, so that xfree preserves errno.
* src/sysdep.c (get_current_dir_name_or_unreachable):
Simplify by using strdup instead of malloc+memcpy.
No need for realloc (and the old code leaked memory anyway on
failure); just use free+malloc.
admin/merge-gnulib
lib-src/emacsclient.c
lib-src/etags.c
lib-src/update-game-score.c
src/alloc.c
src/fileio.c
src/sysdep.c