comparison scripts/deprecated/module.mk @ 18538: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 2217bc116aa9
children 7485f8a8e431
comparison
equal deleted inserted replaced
18537:f958e8cd6348 18538:fcd87f68af4f
1 FCN_FILE_DIRS += deprecated 1 FCN_FILE_DIRS += deprecated
2 2
3 deprecated_FCN_FILES = \ 3 deprecated_FCN_FILES = \
4 deprecated/find_dir_in_path.m \ 4 deprecated/find_dir_in_path.m \
5 deprecated/isstr.m 5 deprecated/isstr.m \
6 deprecated/nfields.m
6 7
7 FCN_FILES += $(deprecated_FCN_FILES) 8 FCN_FILES += $(deprecated_FCN_FILES)
8 9
9 PKG_ADD_FILES += deprecated/PKG_ADD 10 PKG_ADD_FILES += deprecated/PKG_ADD
10 11