mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-05 08:53:45 +00:00
ec8a17e938
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. |
||
---|---|---|
.. | ||
ChangeLog.1 | ||
COPYING | ||
ctags.c | ||
ebrowse.c | ||
emacsclient.c | ||
etags.c | ||
hexl.c | ||
make-docfile.c | ||
make-fingerprint.c | ||
Makefile.in | ||
movemail.c | ||
ntlib.c | ||
ntlib.h | ||
pop.c | ||
pop.h | ||
rcs2log | ||
README | ||
update-game-score.c |
This directory contains the source code for the architecture-dependent files that go in ${archlibdir}. At present, these are mostly utility programs used by GNU Emacs.