• Philipp Stephani's avatar
    Add module functions to convert from and to big integers. · e290a7d1
    Philipp Stephani authored
    * 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.
    e290a7d1
module-env-27.h 717 Bytes