]> git.eshelyaron.com Git - emacs.git/commit
time-equal, and time values of infinity and NaN
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 28 Sep 2018 01:28:27 +0000 (18:28 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 28 Sep 2018 01:43:54 +0000 (18:43 -0700)
commit06e2814e1f3a80d247675319d3c438989592fb06
treea9852c5b278bcb85c4f3e0272848f89c2c511d11
parent21fc3227634c720128206980c72080dfc825a3de
time-equal, and time values of infinity and NaN

* doc/lispref/os.texi (Time Calculations):
Document time-equal, and the behavior on NaNs and infinities of
time-less-p, time-add, time-subtract.
* etc/NEWS: Mention the change.
* src/editfns.c (time_arith): Change last arg from function
to bool.  All callers changed.  Do the right thing with
infinities and NaNs.
(time_cmp): New function, which handlesx infinities and NaNs.
(Ftime_less_p): Use it.
(Ftime_equal): New function.
* test/lisp/emacs-lisp/timer-tests.el (timer-test-multiple-of-time):
Use it.
doc/lispref/os.texi
etc/NEWS
src/editfns.c
test/lisp/emacs-lisp/timer-tests.el