1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00
emacs/lib-src
Paul Eggert 295bacba61 Move current_timespec decl to timespec.h
This change was motivated by the desire to remove the weird
dependency of lib-src/profile.o on src/systime.h.  profile.c
included systime.h only for current_timespec, and this
inclusion required systime.h to have #ifdef emacs in multiple
places and complicated further changes I have in mind.
The current_timespec decl belongs in timespec.h anyway,
and the main effect of this change is to move it there.
* lib-src/profile.c (INLINE): Remove.
Include timespec.h, not systime.h.
* lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
and don’t worry about it failing on a CLOCK_REALTIME arg.
POSIX requires it to succeed and I don’t know of any
counterexamples where the fallbacks would work.
(current_timespec): Move here from src/systime.h.
Nowadays it seems to be better to not have this function
be inline.
* lib/timespec.h: Include arg-nonnull.h.
(current_timespec): New declaration.
(gettime, settime): Declare args to be nonnull.
* lib/gettime.c, lib/timespec.h: Copy from Gnulib.
* src/systime.h: Simplify by assuming ‘emacs’ is defined,
which it always is now.
(current_timespec): Move to lib/timespec.h.
2018-09-16 21:28:08 -07:00
..
ChangeLog.1 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
COPYING Merge from Gnulib 2017-10-01 18:31:10 -07:00
ctags.c Port ctags+etags build to Sun C 5.12. 2014-05-18 11:57:04 -07:00
ebrowse.c Port --enable-gcc-warnings to GCC 8 2018-04-28 16:56:48 -07:00
emacsclient.c Merge from origin/emacs-26 2018-08-10 11:28:40 -07:00
etags.c Make mini-gmp safe for --enable-gcc-warnings 2018-08-12 11:13:15 -07:00
hexl.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
make-docfile.c Port --enable-gcc-warnings to GCC 8 2018-04-28 16:56:48 -07:00
Makefile.in Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
movemail.c Port --enable-gcc-warnings to GCC 8 2018-04-28 16:56:48 -07:00
ntlib.c Fix the MS-Windows build as followup to Gnulib regex import 2018-08-06 17:50:55 +03:00
ntlib.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
pop.c ; Fix last change: only MinGW runtime 5.0.2 and later needs that. 2018-07-28 17:21:53 +03:00
pop.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
profile.c Move current_timespec decl to timespec.h 2018-09-16 21:28:08 -07:00
rcs2log Fix copyright years by hand 2018-01-01 01:02:09 -08:00
README
update-game-score.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00

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.