X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fabort.c;h=61234a06f5743747687e6fbf397763dae528598c;hb=c6be847cfdfb0dafed7d77bb0895bf4bfb049e0a;hp=4580c0f6ad82d8ce6b7037046bccdefef857c26a;hpb=2f48cae403429be0396f2b7bef0ba6d5d2bdc02f;p=rodin%2Fchimara.git diff --git a/src/abort.c b/src/abort.c index 4580c0f..61234a0 100644 --- a/src/abort.c +++ b/src/abort.c @@ -8,14 +8,15 @@ extern ChimaraGlkPrivate *glk_data; /** * glk_set_interrupt_handler: - * @func: A pointer to a function which takes no argument and returns no result. + * @func: A pointer to an interrupt handler function. * - * Specifies an interrupt handler function for cleaning up critical resources. - * If Glk receives an interrupt, and you have set an interrupt handler, your - * handler will be called, before the process is shut down. + * Sets @func to be the interrupt handler. @func should be a pointer to a + * function which takes no argument and returns no result. If Glk receives an + * interrupt, and you have set an interrupt handler, your handler will be + * called, before the process is shut down. * * Initially there is no interrupt handler. You can reset to not having any by - * calling glk_set_interrupt_handler(%NULL). + * calling #glk_set_interrupt_handler(%NULL). * * If you call glk_set_interrupt_handler() with a new handler function while an * older one is set, the new one replaces the old one. Glk does not try to queue @@ -33,7 +34,7 @@ glk_set_interrupt_handler(void (*func)(void)) /* Internal function: abort this Glk program, freeing resources and calling the user's interrupt handler. */ -void +static void abort_glk() { if(glk_data->interrupt_handler) @@ -68,5 +69,3 @@ check_for_abort() } g_mutex_unlock(glk_data->abort_lock); } - -