 |
TE_checkSlack |
Function (ROM Call 0xA6) |
Reallocates the text editor buffer if there is not much space left in it.
TE_checkSlack checks how much free space is present in the text editor buffer (associated with the
structure pointed to by te). If there is not much space left, then the buffer is reallocated
(expanded). Note that the editor will expand buffer if necessary during normal processing of
keypresses using TE_handleEvent, so the user need not to call
this function, except if it is necessary to check and eventually expand the buffer independently
of event dispatching procedure. Of course, the editor must not be opened with
TE_openFixed if you want to use this function.
Uses: HeapRealloc, reset_estack_size
Used by: TE_empty, TE_handleEvent, TE_open, TE_pasteText, TE_reopen, TE_reopenPlain