aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPhilipp Stephani2019-04-18 22:38:29 +0200
committerPhilipp Stephani2019-04-24 12:53:54 +0200
commite290a7d1730c99010272bbff7f497c3041cef46d (patch)
treed17ccf1313e8b408c6e8cbef64e71a4f1311da4e /etc
parentbffceab6339fb4042588b893ef754c6264379e75 (diff)
downloademacs-e290a7d1730c99010272bbff7f497c3041cef46d.tar.gz
emacs-e290a7d1730c99010272bbff7f497c3041cef46d.zip
Add module functions to convert from and to big integers.
* src/module-env-27.h: Add new module functions to convert big integers. * src/emacs-module.h.in (emacs_mpz): Define if GMP is available. * src/emacs-module.c (module_extract_big_integer) (module_make_big_integer): New functions. (initialize_environment): Use them. * test/data/emacs-module/mod-test.c (Fmod_test_double): New test function. (emacs_module_init): Define it. * test/src/emacs-module-tests.el (mod-test-double): New unit test. * doc/lispref/internals.texi (Module Values): Document new functions.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index fc9b828baa1..e861a372b17 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1913,6 +1913,10 @@ case.
1913** New module environment functions 'make_time' and 'extract_time' to 1913** New module environment functions 'make_time' and 'extract_time' to
1914convert between timespec structures and Emacs Lisp time values. 1914convert between timespec structures and Emacs Lisp time values.
1915 1915
1916** New module environment functions 'make_big_integer' and
1917'extract_big_integer' to create and extract arbitrary-size integer
1918values.
1919
1916 1920
1917* Changes in Emacs 27.1 on Non-Free Operating Systems 1921* Changes in Emacs 27.1 on Non-Free Operating Systems
1918 1922