Mercurial > hg > octave-nkf
diff src/defun-int.h @ 3564:403039c85792
[project @ 2000-02-03 06:23:11 by jwe]
author | jwe |
---|---|
date | Thu, 03 Feb 2000 06:28:19 +0000 |
parents | 19d6fea99ba1 |
children | b65077dfa1b1 |
line wrap: on
line diff
--- a/src/defun-int.h +++ b/src/defun-int.h @@ -172,13 +172,21 @@ // How mapper functions are actually installed. +// XXX FIXME XXX -- Really want to avoid the following casts, since +// (as always with casts) it may mask some real errors... + #define DEFUN_MAPPER_INTERNAL(name, ch_map, d_b_map, c_b_map, d_d_map, \ d_c_map, c_c_map, lo, hi, \ can_ret_cmplx_for_real, doc) \ install_builtin_mapper \ - (new octave_mapper (ch_map, d_b_map, c_b_map, d_d_map, d_c_map, \ - c_c_map, lo, hi, \ - can_ret_cmplx_for_real, #name)) + (new octave_mapper \ + (X_CAST (octave_mapper::ch_mapper, ch_map), \ + X_CAST (octave_mapper::d_b_mapper, d_b_map), \ + X_CAST (octave_mapper::c_b_mapper, c_b_map), \ + X_CAST (octave_mapper::d_d_mapper, d_d_map), \ + X_CAST (octave_mapper::d_c_mapper, d_c_map), \ + X_CAST (octave_mapper::c_c_mapper, c_c_map), \ + lo, hi, can_ret_cmplx_for_real, #name)) #endif /* ! MAKE_BUILTINS */