]> git.eshelyaron.com Git - emacs.git/commit
Better distinguish infinite from invalid times
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 9 Feb 2015 00:21:11 +0000 (16:21 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 9 Feb 2015 00:21:44 +0000 (16:21 -0800)
commitfd6f7d1449c8496ab5c019d2aad7ca5e2980713a
tree83934f904dda8a258d8b8175d0f6120f510b3790
parentdb3fc07caf71b6d7a34f80333ba54ed6d67ee144
Better distinguish infinite from invalid times

* editfns.c (check_time_validity): New function.
(decode_time_components): Return int, not bool.
Return -1 (not 0) if the time is out of range.
All callers changed.
(lisp_time_struct, lisp_seconds_argument): Distinguish better
between time overflow and invalid time values.
src/ChangeLog
src/editfns.c
src/keyboard.c
src/systime.h