summaryrefslogtreecommitdiff
path: root/src/systime.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-07-06 18:57:42 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-07-06 18:57:42 -0700
commit31571fd712d8c1796f7d31739f1b48cf25948d64 (patch)
tree36e8f03e132306f2824b8711827fcd8a6514279a /src/systime.h
parent4516fbef7207ca23ca72da28d060dad979319310 (diff)
downloademacs-31571fd712d8c1796f7d31739f1b48cf25948d64.tar.gz
Do not require float-time's arg to fit in time_t (Bug#11825).
This works better on hosts where time_t is unsigned, and where float-time is applied to the (negative) difference between two times. * editfns.c (decode_time_components): Last arg is now double *, not int *, and means to store all the result as a double, without worrying about whether the seconds part fits in time_t. All callers changed. (lisp_time_argument): Remove last int * arg, as it's no longer needed. All callers changed. (Ffloat_time): Do not fail merely because the specified time falls outside of time_t range.
Diffstat (limited to 'src/systime.h')
-rw-r--r--src/systime.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systime.h b/src/systime.h
index 0f91551239e..938083a5ffc 100644
--- a/src/systime.h
+++ b/src/systime.h
@@ -112,8 +112,8 @@ extern void set_waiting_for_input (EMACS_TIME *);
/* defined in editfns.c */
extern Lisp_Object make_lisp_time (EMACS_TIME);
extern int decode_time_components (Lisp_Object, Lisp_Object, Lisp_Object,
- Lisp_Object, EMACS_TIME *, int *);
-extern EMACS_TIME lisp_time_argument (Lisp_Object, int *);
+ Lisp_Object, EMACS_TIME *, double *);
+extern EMACS_TIME lisp_time_argument (Lisp_Object);
#endif
/* Compare times T1 and T2 for equality, inequality etc. */