diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-02-08 16:21:11 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-02-08 16:21:44 -0800 |
commit | fd6f7d1449c8496ab5c019d2aad7ca5e2980713a (patch) | |
tree | 83934f904dda8a258d8b8175d0f6120f510b3790 /lisp/emacs-lisp/warnings.el | |
parent | db3fc07caf71b6d7a34f80333ba54ed6d67ee144 (diff) | |
download | emacs-fd6f7d1449c8496ab5c019d2aad7ca5e2980713a.tar.gz emacs-fd6f7d1449c8496ab5c019d2aad7ca5e2980713a.tar.bz2 emacs-fd6f7d1449c8496ab5c019d2aad7ca5e2980713a.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/warnings.el')
0 files changed, 0 insertions, 0 deletions