1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00
emacs/lib-src
Paul Eggert e9a9ae0350 EMACS_TIME simplification (Bug#11875).
This replaces macros (which typically do not work in GDB)
with functions, typedefs and enums, making the code easier to debug.
The functional style also makes code easier to read and maintain.
* lib-src/profile.c (TV2): Remove no-longer-needed static var.
* src/systime.h: Include <sys/time.h> on all hosts, not just if
WINDOWSNT, since 'struct timeval' is needed in general.
(EMACS_TIME): Now a typedef, not a macro.
(EMACS_TIME_RESOLUTION, LOG10_EMACS_TIME_RESOLUTION): Now constants,
not macros.
(EMACS_SECS, EMACS_NSECS, EMACS_TIME_SIGN, EMACS_TIME_VALID_P)
(EMACS_TIME_FROM_DOUBLE, EMACS_TIME_TO_DOUBLE, EMACS_TIME_EQ)
(EMACS_TIME_NE, EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT)
(EMACS_TIME_LE): Now functions, not macros.
(EMACS_SET_SECS, EMACS_SET_NSECS, EMACS_SET_SECS_NSECS)
(EMACS_SET_USECS, EMACS_SET_SECS_USECS): Remove these macros,
which are not functions.  All uses rewritten to use:
(make_emacs_time): New function.
(EMACS_SECS_ADDR, EMACS_SET_INVALID_TIME, EMACS_GET_TIME)
(EMACS_ADD_TIME, EMACS_SUB_TIME): Remove these macros, which are
not functions.  All uses rewritten to use the following, respectively:
(emacs_secs_addr, invalid_emacs_time, get_emacs_time)
(add_emacs_time, sub_emacs_time): New functions.
* src/atimer.c: Don't include <sys/time.h>,	as "systime.h" does this.
* src/fileio.c (Fcopy_file):
* src/xterm.c (XTflash): Get the current time closer to when it's used.
* src/makefile.w32-in ($(BLD)/atimer.$(O)): Update dependencies.
2012-07-10 16:24:36 -07:00
..
.gitignore Don't ignore files that are no longer generated 2011-02-13 19:35:05 +01:00
ChangeLog EMACS_TIME simplification (Bug#11875). 2012-07-10 16:24:36 -07:00
COPYING
ebrowse.c Switch from NO_RETURN to C11's _Noreturn. 2012-06-24 10:39:14 -07:00
emacsclient.c lib-src/emacsclient.c (w32_execvp): Declare execvp to silence the compiler. 2012-07-09 16:01:41 +02:00
etags.c Simplify by avoiding confusing use of strncpy etc. 2012-07-10 14:48:34 -07:00
grep-changelog Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
hexl.c Clean out last vestiges of the old HAVE_CONFIG_H stuff. 2012-06-25 18:05:39 -07:00
make-docfile.c Simplify by avoiding confusing use of strncpy etc. 2012-07-10 14:48:34 -07:00
Makefile.in Clean out last vestiges of the old HAVE_CONFIG_H stuff. 2012-06-25 18:05:39 -07:00
makefile.w32-in lib-src/makefile.w32-in: Rework dependencies. 2012-07-09 06:21:55 +02:00
movemail.c Simplify by avoiding confusing use of strncpy etc. 2012-07-10 14:48:34 -07:00
ntlib.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
ntlib.h Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
pop.c Simplify by avoiding confusing use of strncpy etc. 2012-07-10 14:48:34 -07:00
pop.h Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
profile.c EMACS_TIME simplification (Bug#11875). 2012-07-10 16:24:36 -07:00
rcs2log Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
README
test-distrib.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
testfile
update-game-score.c Switch from NO_RETURN to C11's _Noreturn. 2012-06-24 10:39:14 -07: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.