Mercurial > hg > octave-lyh
comparison libinterp/octave-value/ov-struct.cc @ 15215:9020dddc925a
use std::numeric_limits for integer max and min values
* strfind.cc, gl-render.cc, jit-typeinfo.cc, oct-stream.cc,
sparse-xpow.cc, xpow.cc, debug.cc, file-io.cc, ls-oct-ascii.cc,
oct-hist.cc, pr-output.cc, utils.cc, variables.h, ov-base-int.cc,
ov-base.cc, ov-bool-sparse.cc, ov-cx-sparse.cc, ov-float.cc,
ov-flt-re-mat.cc, ov-int16.cc, ov-int32.cc, ov-int64.cc, ov-int8.cc,
ov-re-mat.cc, ov-re-sparse.cc, ov-scalar.cc, ov-struct.cc,
ov-uint16.cc, ov-uint32.cc, ov-uint64.cc, ov-uint8.cc, Array.cc,
Sparse.cc, chNDArray.cc, dNDArray.cc, data-conv.cc, data-conv.h,
fNDArray.cc, kpse.cc, oct-inttypes.h, oct-time.cc:
Use std::numeric_limits for max and min integer values. Include
<limits>, not <climits>.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 22 Aug 2012 17:36:54 -0400 |
parents | 2fc554ffbc28 |
children | 049e8bbff782 |
comparison
equal
deleted
inserted
replaced
15214:ae6b7ee0a733 | 15215:9020dddc925a |
---|---|
2210 When called from inside a function with the \"local\" option, the variable is\n\ | 2210 When called from inside a function with the \"local\" option, the variable is\n\ |
2211 changed locally for the function and any subroutines it calls. The original\n\ | 2211 changed locally for the function and any subroutines it calls. The original\n\ |
2212 variable value is restored when exiting the function.\n\ | 2212 variable value is restored when exiting the function.\n\ |
2213 @end deftypefn") | 2213 @end deftypefn") |
2214 { | 2214 { |
2215 return SET_INTERNAL_VARIABLE_WITH_LIMITS (struct_levels_to_print, | 2215 return SET_INTERNAL_VARIABLE_WITH_LIMITS (struct_levels_to_print, -1, |
2216 -1, INT_MAX); | 2216 std::numeric_limits<int>::max ()); |
2217 } | 2217 } |
2218 | 2218 |
2219 DEFUN (print_struct_array_contents, args, nargout, | 2219 DEFUN (print_struct_array_contents, args, nargout, |
2220 "-*- texinfo -*-\n\ | 2220 "-*- texinfo -*-\n\ |
2221 @deftypefn {Built-in Function} {@var{val} =} print_struct_array_contents ()\n\ | 2221 @deftypefn {Built-in Function} {@var{val} =} print_struct_array_contents ()\n\ |