Mercurial > hg > octave-nkf
diff libinterp/interpfcn/input.h @ 16347:bf8397caeff1
allow add_input_event_hook to accept function handles
* input.cc (base_hook_function, hook_function, named_hook_function,
fcn_handle_hook_function): New classes.
(input_event_hook, Fadd_input_event_hook, Fremove_input_event_hook):
Use hook_function object.
(Fadd_input_event_hook): Return hook_function ID.
(Fremove_input_event_hook): Use ID to search for hook_function.
* input.h, input.cc (remove_input_event_hook_functions):
New function.
* toplev.cc (do_octave_atexit): Call it.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 Mar 2013 02:04:12 -0400 |
parents | e7ff32e7cf82 |
children | 9bc1f8278966 |
line wrap: on
line diff