1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 00:51:50 -08:00
emacs/test/src
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
..
regex-resources
alloc-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
buffer-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
callint-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
callproc-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
casefiddle-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
charset-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
chartab-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cmds-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
coding-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
data-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
decompress-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
doc-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
editfns-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
emacs-module-tests.el Also print function data when printing module functions. 2020-01-05 16:07:28 +01:00
eval-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
fileio-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
floatfns-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
fns-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
font-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
inotify-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
json-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
keyboard-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
keymap-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lcms-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lread-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
marker-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
minibuf-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
print-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
process-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
regex-emacs-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
syntax-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
textprop-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
thread-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
timefns-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
undo-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
xml-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00