1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-17 00:30:37 -08:00
emacs/test/data
Philipp Stephani fc92c2d894 Also print function data when printing module functions.
This is especially useful in cases where modules only use a single
entry point and use the data to dispatch to the actual function.  Such
a design is common for languages such as Go and C++.

* src/emacs-module.c (module_function_data): New function.

* src/print.c (print_vectorlike): Use it to print module function data
if not NULL.
(print_object): Adapt size of buffer.

* test/data/emacs-module/mod-test.c (emacs_module_init): Pass some
non-NULL data to ‘mod-test-sum’.
(Fmod_test_sum): Check that correct data is passed through.

* test/src/emacs-module-tests.el (mod-test-sum-test)
(module-function-object): Adapt unit tests.
2020-01-05 16:07:28 +01:00
..
decompress
emacs-module Also print function data when printing module functions. 2020-01-05 16:07:28 +01:00
epg
image
mailcap
net
shr
themes Update copyright year to 2020 2020-01-01 00:59:52 +00:00
vc/diff-mode
xdg
xref
files-bug18141.el.gz
minibuffer-test-cttq$tion * test/lisp/minibuffer-tests.el (completion-table-test-quoting): New test 2019-11-26 13:18:18 -05:00
somelib.el
somelib2.el