aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorPaul Eggert2011-03-11 12:24:09 -0800
committerPaul Eggert2011-03-11 12:24:09 -0800
commit8be6f3188dd265704c5d19d09e84a36c5e33d403 (patch)
tree50647ee1188e06abc05f1d8162099ce8c7c18023 /src/editfns.c
parent14239447d34591d3bc90d0d447dd8253a37e49eb (diff)
downloademacs-8be6f3188dd265704c5d19d09e84a36c5e33d403.tar.gz
emacs-8be6f3188dd265704c5d19d09e84a36c5e33d403.zip
Move 'make_time' to be next to its inverse 'lisp_time_argument'.
* dired.c (make_time): Move to ... * editfns.c (make_time): ... here. * systime.h: Note the move.
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 28690e7c76d..ec477f0e010 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1476,6 +1476,19 @@ on systems that do not provide resolution finer than a second. */)
1476} 1476}
1477 1477
1478 1478
1479/* Make a Lisp list that represents the time T. */
1480Lisp_Object
1481make_time (time_t t)
1482{
1483 return Fcons (make_number (t >> 16),
1484 Fcons (make_number (t & 0177777), Qnil));
1485}
1486
1487/* Decode a Lisp list SPECIFIED_TIME that represents a time.
1488 If SPECIFIED_TIME is nil, use the current time.
1489 Set *RESULT to seconds since the Epoch.
1490 If USEC is not null, set *USEC to the microseconds component.
1491 Return nonzero if successful. */
1479int 1492int
1480lisp_time_argument (Lisp_Object specified_time, time_t *result, int *usec) 1493lisp_time_argument (Lisp_Object specified_time, time_t *result, int *usec)
1481{ 1494{