AmendHub

Download:

jcs

/

wikipedia

/

amendments

/

7

focusable: Provide focusables_atexit to be called with _atexit()


jcs made amendment 7 about 1 year ago
--- focusable.c Thu Aug 18 21:14:38 2022 +++ focusable.c Sun Aug 21 22:46:07 2022 @@ -174,4 +174,15 @@ focusables_quit(void) } return quit; -} +} + +void +focusables_atexit(void) +{ + short n; + + for (n = 0; n < nfocusables; n++) { + if (focusables[n]->atexit) + focusables[n]->atexit(focusables[n]); + } +} --- focusable.h Tue Aug 16 13:33:08 2022 +++ focusable.h Sun Aug 21 22:46:17 2022 @@ -45,5 +45,6 @@ bool focusable_show(struct focusable *focusable); bool focusable_close(struct focusable *focusable); void focusable_hide(struct focusable *focusable); bool focusables_quit(void); +void focusables_atexit(void); #endif