Mercurial > hg > octave-lojdl
changeset 3521:2405b732be40
[project @ 2000-02-02 06:22:13 by jwe]
author | jwe |
---|---|
date | Wed, 02 Feb 2000 06:22:13 +0000 |
parents | b153b9fa7f1a |
children | bd422cf62f0c |
files | liboctave/oct-rl-edit.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/oct-rl-edit.c +++ b/liboctave/oct-rl-edit.c @@ -203,8 +203,8 @@ void octave_rl_set_startup_hook (rl_startup_hook_fcn_ptr f) { - rl_startup_hook_fcn_ptr fp = (rl_startup_hook_fcn_ptr) rl_startup_hook; - fp = (rl_startup_hook_fcn_ptr) f; + void **fp = (void **) rl_startup_hook; + *fp = (void *) f; } rl_startup_hook_fcn_ptr @@ -216,8 +216,8 @@ void octave_rl_set_event_hook (rl_event_hook_fcn_ptr f) { - rl_event_hook_fcn_ptr fp = (rl_event_hook_fcn_ptr) rl_event_hook; - fp = (rl_event_hook_fcn_ptr) f; + void **fp = (void **) rl_event_hook; + *fp = (void *) f; } rl_event_hook_fcn_ptr