Mercurial > hg > octave-nkf
comparison libinterp/octave-value/ov-struct.cc @ 18606:fcd87f68af4f
Deprecate nfields and replace with numfields.
* NEWS: Announce deprecation of nfields and addition of new function numfields.
* container.txi: Add numfields to the manual.
* oct-map.cc (octave_map::cat): Change %!tests to use numfields.
* ov-struct.cc (Fnumfields): Function renamed from nfields.
* scripts/deprecated/nfields.m: Add m-file which warns about nfields deprecation.
* scripts/deprecated/module.mk: Add nfields.m to build system.
* fieldnames.m: Change seealso link to point to numfields.
* __isequal__.m: Use numfields to simplify code.
* imwrite.m: Replace 'isempty (fieldnames (fmt))' with 'numfields (fmt) > 0'
for clarity.
* imageIO.m: Replace 'isempty (fieldnames (fmt))' with 'numfields (fmt) > 0'
for clarity.
* importdata.m: Use numfields to simplify code.
* assert.m: Use numfields to simplify code.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 02 Mar 2014 12:56:11 -0800 |
parents | f958e8cd6348 |
children | 6113e0c6920b |
comparison
equal
deleted
inserted
replaced
18605:f958e8cd6348 | 18606:fcd87f68af4f |
---|---|
2064 print_usage (); | 2064 print_usage (); |
2065 | 2065 |
2066 return retval; | 2066 return retval; |
2067 } | 2067 } |
2068 | 2068 |
2069 DEFUN (nfields, args, , | 2069 DEFUN (numfields, args, , |
2070 "-*- texinfo -*-\n\ | 2070 "-*- texinfo -*-\n\ |
2071 @deftypefn {Built-in Function} {} nfields (@var{s})\n\ | 2071 @deftypefn {Built-in Function} {} numfields (@var{s})\n\ |
2072 Return the number of fields of the structure @var{s}.\n\ | 2072 Return the number of fields of the structure @var{s}.\n\ |
2073 @seealso{fieldnames}\n\ | 2073 @seealso{fieldnames}\n\ |
2074 @end deftypefn") | 2074 @end deftypefn") |
2075 { | 2075 { |
2076 octave_value retval; | 2076 octave_value retval; |