aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h
diff options
context:
space:
mode:
authorPaul Eggert2019-11-10 15:06:49 -0800
committerPaul Eggert2019-11-13 13:10:08 -0800
commitff10e9517d98aa606e007d3aa4d5aef1c423ab77 (patch)
tree99d676a2ef88a024fdfd3fdafcdb7abb508e0f55 /src/lisp.h
parent65fb04801c59ac204790e0a5c0599c9b11151f32 (diff)
downloademacs-ff10e9517d98aa606e007d3aa4d5aef1c423ab77.tar.gz
emacs-ff10e9517d98aa606e007d3aa4d5aef1c423ab77.zip
Refactor double integer scaling
This doesn’t alter behavior, and simplifies a future commit. * src/floatfns.c (double_integer_scale): New function, with body adapted from the old timefns.c. * src/timefns.c (decode_float_time): Use it.
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 04fa1d64eab..38e1891c894 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -3684,6 +3684,7 @@ extern Lisp_Object string_make_unibyte (Lisp_Object);
3684extern void syms_of_fns (void); 3684extern void syms_of_fns (void);
3685 3685
3686/* Defined in floatfns.c. */ 3686/* Defined in floatfns.c. */
3687int double_integer_scale (double);
3687#ifndef HAVE_TRUNC 3688#ifndef HAVE_TRUNC
3688extern double trunc (double); 3689extern double trunc (double);
3689#endif 3690#endif