]> git.neil.brown.name Git - edlib.git/commit
Support inline pane data.
authorNeilBrown <neil@brown.name>
Tue, 4 Jul 2023 03:14:15 +0000 (13:14 +1000)
committerNeilBrown <neil@brown.name>
Wed, 12 Jul 2023 22:17:52 +0000 (08:17 +1000)
commit2bb4631723bc366913330d240f4758f308dc6c35
tree96f918e6464525db170d814f6ef1f63617859bf5
parent92bb713b4f2ec004db545fa153f9285ea9222d2f
Support inline pane data.

If a NULL data pointer is passed to __pane_register(), then a larger
memory allocation will be made to hold both the pane and the data.

If a type is defined with PANE_DATA_TYPE then that will be the size
passed to __pane_register by pane_register().

Similarly DOC_DATA_TYPE can give a type for a document.  The "struct
doc" must appear first in this type.

If PANE_DATA_TYPE is defined, then "core-pane.h" must be included after
the type has been declared, which will usually be after "core.h" is included.

Signed-off-by: NeilBrown <neil@brown.name>
Makefile
core-doc.c
core-editor.c
core-pane.c
core-pane.h [new file with mode: 0644]
core.h
lang-python.c
misc.h