diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-09-04 09:30:57 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-09-04 09:31:53 -0700 |
commit | 1d84e6523250ab6d14f40fba3922c56d7a40416f (patch) | |
tree | 74155ea37e750ad19bc327fb3165b2cfd9440573 /src/emacs.c | |
parent | fe042e9d15da7863b5beb4c2cc326a62d2c7fccb (diff) | |
download | emacs-1d84e6523250ab6d14f40fba3922c56d7a40416f.tar.gz emacs-1d84e6523250ab6d14f40fba3922c56d7a40416f.tar.bz2 emacs-1d84e6523250ab6d14f40fba3922c56d7a40416f.zip |
Fix bignum initialization
Problem reported by Andy Moreton in:
https://lists.gnu.org/r/emacs-devel/2018-09/msg00072.html
and crystal-ball diagnosis by Eli Zaretskii in:
https://lists.gnu.org/r/emacs-devel/2018-09/msg00075.html
* src/alloc.c (xrealloc_for_gmp, xfree_for_gmp): Move to bignum.c.
(init_alloc): Move bignum initialization to init_bignum.
* src/bignum.c (init_bignum): Rename from init_bignum_once.
All users changed.
* src/emacs.c (main): Call init_bignum after init_alloc,
instead of calling init_bignum_once after init_bignum.
Diffstat (limited to 'src/emacs.c')
-rw-r--r-- | src/emacs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c index 5b399eca64f..b1c96d18285 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1209,7 +1209,6 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem if (!initialized) { init_alloc_once (); - init_bignum_once (); init_threads_once (); init_obarray (); init_eval_once (); @@ -1257,6 +1256,7 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem } init_alloc (); + init_bignum (); init_threads (); if (do_initial_setlocale) |