diff options
| author | Paul Eggert | 2019-11-10 15:06:49 -0800 |
|---|---|---|
| committer | Paul Eggert | 2019-11-13 13:10:08 -0800 |
| commit | ff10e9517d98aa606e007d3aa4d5aef1c423ab77 (patch) | |
| tree | 99d676a2ef88a024fdfd3fdafcdb7abb508e0f55 /src/lisp.h | |
| parent | 65fb04801c59ac204790e0a5c0599c9b11151f32 (diff) | |
| download | emacs-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.h | 1 |
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); | |||
| 3684 | extern void syms_of_fns (void); | 3684 | extern void syms_of_fns (void); |
| 3685 | 3685 | ||
| 3686 | /* Defined in floatfns.c. */ | 3686 | /* Defined in floatfns.c. */ |
| 3687 | int double_integer_scale (double); | ||
| 3687 | #ifndef HAVE_TRUNC | 3688 | #ifndef HAVE_TRUNC |
| 3688 | extern double trunc (double); | 3689 | extern double trunc (double); |
| 3689 | #endif | 3690 | #endif |