Mercurial > hg > octave-lyh
changeset 3578:a40ca99e3e75
[project @ 2000-02-04 23:13:44 by jwe]
author | jwe |
---|---|
date | Fri, 04 Feb 2000 23:13:45 +0000 |
parents | da3cf11d6966 |
children | 8a0571a2becc |
files | liboctave/ChangeLog liboctave/oct-rl-edit.c |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,5 +1,9 @@ 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> + * oct-rl-edit.c (octave_rl_set_event_hook): Take address of + rl_event_hook before casting to void **. + (octave_rl_set_startup_hook): Likewise, for rl_startup_hook. + * MArray-defs.h: Many new macros to make declaration and definition of operators more consistent.
--- a/liboctave/oct-rl-edit.c +++ b/liboctave/oct-rl-edit.c @@ -203,7 +203,7 @@ void octave_rl_set_startup_hook (rl_startup_hook_fcn_ptr f) { - void **fp = (void **) rl_startup_hook; + void **fp = (void **) (&rl_startup_hook); *fp = (void *) f; } @@ -216,7 +216,7 @@ void octave_rl_set_event_hook (rl_event_hook_fcn_ptr f) { - void **fp = (void **) rl_event_hook; + void **fp = (void **) (&rl_event_hook); *fp = (void *) f; }