diff options
| author | Philipp Stephani | 2019-04-18 22:38:29 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2019-04-24 12:53:54 +0200 |
| commit | e290a7d1730c99010272bbff7f497c3041cef46d (patch) | |
| tree | d17ccf1313e8b408c6e8cbef64e71a4f1311da4e /src/lisp.h | |
| parent | bffceab6339fb4042588b893ef754c6264379e75 (diff) | |
| download | emacs-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 '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 d803f160006..703fe76d64e 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -4151,6 +4151,7 @@ extern void *unexec_realloc (void *, size_t); | |||
| 4151 | extern void unexec_free (void *); | 4151 | extern void unexec_free (void *); |
| 4152 | #endif | 4152 | #endif |
| 4153 | 4153 | ||
| 4154 | #define EMACS_MODULE_GMP | ||
| 4154 | #include "emacs-module.h" | 4155 | #include "emacs-module.h" |
| 4155 | 4156 | ||
| 4156 | /* Function prototype for the module Lisp functions. */ | 4157 | /* Function prototype for the module Lisp functions. */ |