]> git.eshelyaron.com Git - emacs.git/commit
Simplify timestamp decoding
authorMattias EngdegÄrd <mattiase@acm.org>
Fri, 12 Jul 2024 10:16:22 +0000 (12:16 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 13 Jul 2024 20:07:13 +0000 (22:07 +0200)
commit409a6daf22b593bc9dfd27ce019c9ff48d3df486
tree54935a97bee134cc035efb95bb542e5f83d8738f
parentd6c3dde9fa80e7261824143b82f0d57985e78a8a
Simplify timestamp decoding

* src/timefns.c (current_time_in_form, time_spec_invalid): New.
(enum timeform): Remove TIMEFORM_INVALID.
(decode_time_components): Move handling of TIMEFORM_INVALID,
TIMEFORM_TICKS_HZ and TIMEFORM_NIL...
(decode_lisp_time): ...here, avoiding the detour.

(cherry picked from commit b23ab371756b5f77f62020cdfda5fe7b6fb04470)
src/timefns.c