Mercurial > octave
diff libinterp/octave-value/ov.h @ 23446:cd4e1ee28716
maint: Use convention 'void * fcn ()' for functions which return pointers.
* make_int.cc, dialog.h, file-editor-interface.h, file-editor-tab.h,
file-editor.h, octave-txt-lexer.h, main-window.h, octave-dock-widget.h,
parser.h, webinfo.h, resource-manager.h, thread-manager.h, c-file-ptr-stream.h,
call-stack.h, comment-list.h, ft-text-renderer.h, gl-render.cc, input.h,
mex.cc, mexproto.h, mxarray.in.h, oct-fstrm.h, oct-iostrm.h, oct-procbuf.h,
oct-stdstrm.h, oct-stream.cc, oct-stream.h, oct-strstrm.h, octave-link.h,
sighandlers.cc, symtab.h, sysdep.h, utils.h, audiodevinfo.cc, ov-base-diag.h,
ov-base-int.h, ov-base-scalar.h, ov-base-sparse.h, ov-base.h, ov-bool-mat.h,
ov-bool-sparse.h, ov-bool.h, ov-builtin.h, ov-cell.h, ov-ch-mat.h, ov-class.h,
ov-classdef.h, ov-colon.h, ov-complex.cc, ov-complex.h, ov-cs-list.h,
ov-cx-diag.h, ov-cx-mat.h, ov-cx-sparse.h, ov-fcn-handle.h, ov-fcn-inline.h,
ov-fcn.h, ov-float.h, ov-flt-complex.h, ov-flt-cx-diag.h, ov-flt-cx-mat.h,
ov-flt-re-diag.h, ov-flt-re-mat.h, ov-intx.h, ov-java.cc, ov-java.h,
ov-lazy-idx.h, ov-mex-fcn.h, ov-oncleanup.h, ov-perm.h, ov-range.h,
ov-re-diag.h, ov-re-mat.h, ov-re-sparse.h, ov-scalar.h, ov-str-mat.h,
ov-struct.h, ov-usr-fcn.h, ov.h, octave.h, bp-table.h, jit-ir.h,
jit-typeinfo.h, jit-util.h, lex.h, parse.h, pt-arg-list.h, pt-array-list.h,
pt-assign.h, pt-binop.h, pt-cell.h, pt-classdef.h, pt-cmd.h, pt-colon.h,
pt-const.h, pt-decl.h, pt-except.h, pt-exp.h, pt-fcn-handle.h, pt-funcall.h,
pt-id.h, pt-idx.h, pt-jit.h, pt-jump.h, pt-loop.h, pt-mat.h, pt-misc.h,
pt-select.h, pt-stmt.h, pt-unop.h, token.h, Array.cc, Array.h, DiagArray2.h,
Sparse.h, dim-vector.h, idx-vector.h, sparse-chol.cc, cmd-edit.cc, cmd-edit.h,
lo-array-errwarn.cc, lo-array-errwarn.h, lo-array-gripes.cc, lo-utils.h,
oct-inttypes.h, oct-locbuf.h, oct-refcount.h, oct-rl-edit.h, oct-rl-hist.h,
oct-shlib.cc, oct-shlib.h, str-vec.h, canonicalize-file-name-wrapper.h,
dirent-wrappers.h, getopt-wrapper.h, glob-wrappers.h, localcharset-wrapper.h,
set-program-name-wrapper.h, signal-wrappers.h, strdup-wrapper.h,
tmpfile-wrapper.h, unistd-wrappers.h, display-available.h:
Use convention 'void * fcn ()' for functions which return pointers.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 27 Apr 2017 09:48:57 -0700 |
parents | c9fab0bc983e |
children | 73558a835b64 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov.h Thu Apr 27 12:31:17 2017 -0400 +++ b/libinterp/octave-value/ov.h Thu Apr 27 09:48:57 2017 -0700 @@ -315,9 +315,9 @@ // This should only be called for derived types. - octave_base_value *clone (void) const; + octave_base_value * clone (void) const; - octave_base_value *empty_clone (void) const + octave_base_value * empty_clone (void) const { return rep->empty_clone (); } // Delete the representation of this constant if the count drops to zero. @@ -405,7 +405,7 @@ octave_value as_uint32 (void) const { return rep->as_uint32 (); } octave_value as_uint64 (void) const { return rep->as_uint64 (); } - octave_base_value *try_narrowing_conversion (void) + octave_base_value * try_narrowing_conversion (void) { return rep->try_narrowing_conversion (); } // Close to dims (), but can be overloaded for classes. @@ -950,17 +950,17 @@ bool is_instance_of (const std::string& cls_name) const { return rep->is_instance_of (cls_name); } - octave_function *function_value (bool silent = false) const; + octave_function * function_value (bool silent = false) const; - octave_user_function *user_function_value (bool silent = false) const; + octave_user_function * user_function_value (bool silent = false) const; - octave_user_script *user_script_value (bool silent = false) const; + octave_user_script * user_script_value (bool silent = false) const; - octave_user_code *user_code_value (bool silent = false) const; + octave_user_code * user_code_value (bool silent = false) const; - octave_fcn_handle *fcn_handle_value (bool silent = false) const; + octave_fcn_handle * fcn_handle_value (bool silent = false) const; - octave_fcn_inline *fcn_inline_value (bool silent = false) const; + octave_fcn_inline * fcn_inline_value (bool silent = false) const; octave_value_list list_value (void) const; @@ -1174,12 +1174,12 @@ Array<FloatComplex> xfloat_complex_vector_value (const char *fmt, ...) const; - octave_function *xfunction_value (const char *fmt, ...) const; - octave_user_function *xuser_function_value (const char *fmt, ...) const; - octave_user_script *xuser_script_value (const char *fmt, ...) const; - octave_user_code *xuser_code_value (const char *fmt, ...) const; - octave_fcn_handle *xfcn_handle_value (const char *fmt, ...) const; - octave_fcn_inline *xfcn_inline_value (const char *fmt, ...) const; + octave_function * xfunction_value (const char *fmt, ...) const; + octave_user_function * xuser_function_value (const char *fmt, ...) const; + octave_user_script * xuser_script_value (const char *fmt, ...) const; + octave_user_code * xuser_code_value (const char *fmt, ...) const; + octave_fcn_handle * xfcn_handle_value (const char *fmt, ...) const; + octave_fcn_inline * xfcn_inline_value (const char *fmt, ...) const; octave_value_list xlist_value (const char *fmt, ...) const; @@ -1300,17 +1300,17 @@ oct_data_conv::data_type output_type, int skip, octave::mach_info::float_format flt_fmt) const; - octave_base_value *internal_rep (void) const { return rep; } + octave_base_value * internal_rep (void) const { return rep; } // Unsafe. These functions exist to support the MEX interface. // You should not use them anywhere else. - void *mex_get_data (void) const { return rep->mex_get_data (); } + void * mex_get_data (void) const { return rep->mex_get_data (); } - octave_idx_type *mex_get_ir (void) const { return rep->mex_get_ir (); } + octave_idx_type * mex_get_ir (void) const { return rep->mex_get_ir (); } - octave_idx_type *mex_get_jc (void) const { return rep->mex_get_jc (); } + octave_idx_type * mex_get_jc (void) const { return rep->mex_get_jc (); } - mxArray *as_mxArray (void) const { return rep->as_mxArray (); } + mxArray * as_mxArray (void) const { return rep->as_mxArray (); } octave_value diag (octave_idx_type k = 0) const { return rep->diag (k); }