comparison liboctave/util/lo-array-gripes.cc @ 21202:f7121e111991

maint: indent #ifdef blocks in liboctave and src directories. * Array-C.cc, Array-b.cc, Array-ch.cc, Array-d.cc, Array-f.cc, Array-fC.cc, Array-i.cc, Array-idx-vec.cc, Array-s.cc, Array-str.cc, Array-util.cc, Array-voidp.cc, Array.cc, CColVector.cc, CDiagMatrix.cc, CMatrix.cc, CNDArray.cc, CRowVector.cc, CSparse.cc, CSparse.h, DiagArray2.cc, MArray-C.cc, MArray-d.cc, MArray-f.cc, MArray-fC.cc, MArray-i.cc, MArray-s.cc, MArray.cc, MDiagArray2.cc, MSparse-C.cc, MSparse-d.cc, MSparse.h, MatrixType.cc, PermMatrix.cc, Range.cc, Sparse-C.cc, Sparse-b.cc, Sparse-d.cc, Sparse.cc, boolMatrix.cc, boolNDArray.cc, boolSparse.cc, chMatrix.cc, chNDArray.cc, dColVector.cc, dDiagMatrix.cc, dMatrix.cc, dNDArray.cc, dRowVector.cc, dSparse.cc, dSparse.h, dim-vector.cc, fCColVector.cc, fCDiagMatrix.cc, fCMatrix.cc, fCNDArray.cc, fCRowVector.cc, fColVector.cc, fDiagMatrix.cc, fMatrix.cc, fNDArray.cc, fRowVector.cc, idx-vector.cc, int16NDArray.cc, int32NDArray.cc, int64NDArray.cc, int8NDArray.cc, intNDArray.cc, uint16NDArray.cc, uint32NDArray.cc, uint64NDArray.cc, uint8NDArray.cc, blaswrap.c, cquit.c, f77-extern.cc, f77-fcn.c, f77-fcn.h, lo-error.c, quit.cc, quit.h, CmplxAEPBAL.cc, CmplxCHOL.cc, CmplxGEPBAL.cc, CmplxHESS.cc, CmplxLU.cc, CmplxQR.cc, CmplxQRP.cc, CmplxSCHUR.cc, CmplxSVD.cc, CollocWt.cc, DASPK.cc, DASRT.cc, DASSL.cc, EIG.cc, LSODE.cc, ODES.cc, Quad.cc, base-lu.cc, base-qr.cc, dbleAEPBAL.cc, dbleCHOL.cc, dbleGEPBAL.cc, dbleHESS.cc, dbleLU.cc, dbleQR.cc, dbleQRP.cc, dbleSCHUR.cc, dbleSVD.cc, eigs-base.cc, fCmplxAEPBAL.cc, fCmplxCHOL.cc, fCmplxGEPBAL.cc, fCmplxHESS.cc, fCmplxLU.cc, fCmplxQR.cc, fCmplxQRP.cc, fCmplxSCHUR.cc, fCmplxSVD.cc, fEIG.cc, floatAEPBAL.cc, floatCHOL.cc, floatGEPBAL.cc, floatHESS.cc, floatLU.cc, floatQR.cc, floatQRP.cc, floatSCHUR.cc, floatSVD.cc, lo-mappers.cc, lo-specfun.cc, oct-convn.cc, oct-fftw.cc, oct-fftw.h, oct-norm.cc, oct-rand.cc, oct-spparms.cc, randgamma.c, randmtzig.c, randpoisson.c, sparse-chol.cc, sparse-dmsolve.cc, sparse-lu.cc, sparse-qr.cc, mx-defs.h, dir-ops.cc, file-ops.cc, file-stat.cc, lo-sysdep.cc, mach-info.cc, oct-env.cc, oct-group.cc, oct-openmp.h, oct-passwd.cc, oct-syscalls.cc, oct-time.cc, oct-uname.cc, pathlen.h, sysdir.h, syswait.h, cmd-edit.cc, cmd-hist.cc, data-conv.cc, f2c-main.c, glob-match.cc, lo-array-errwarn.cc, lo-array-gripes.cc, lo-cutils.c, lo-cutils.h, lo-ieee.cc, lo-math.h, lo-regexp.cc, lo-utils.cc, oct-base64.cc, oct-glob.cc, oct-inttypes.cc, oct-inttypes.h, oct-locbuf.cc, oct-mutex.cc, oct-refcount.h, oct-rl-edit.c, oct-rl-hist.c, oct-shlib.cc, oct-sort.cc, pathsearch.cc, singleton-cleanup.cc, sparse-sort.cc, sparse-util.cc, statdefs.h, str-vec.cc, unwind-prot.cc, url-transfer.cc, display-available.h, main-cli.cc, main-gui.cc, main.in.cc, mkoctfile.in.cc, octave-config.in.cc, shared-fcns.h: indent #ifdef blocks in liboctave and src directories.
author Rik <rik@octave.org>
date Sat, 06 Feb 2016 06:40:13 -0800
parents e06e600f396a
children a83e7a384ee0
comparison
equal deleted inserted replaced
21201:88b41a4711e2 21202:f7121e111991
22 */ 22 */
23 23
24 // FIXME: All gripe_XXX functions deprecated in 4.2. Remove file in 4.6 24 // FIXME: All gripe_XXX functions deprecated in 4.2. Remove file in 4.6
25 25
26 #ifdef HAVE_CONFIG_H 26 #ifdef HAVE_CONFIG_H
27 #include <config.h> 27 # include <config.h>
28 #endif 28 #endif
29 29
30 #include <sstream> 30 #include <sstream>
31 31
32 #include "lo-array-gripes.h" 32 #include "lo-array-gripes.h"
147 { 147 {
148 std::ostringstream buf; 148 std::ostringstream buf;
149 buf << n + 1; 149 buf << n + 1;
150 150
151 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 151 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
152 #pragma GCC diagnostic push 152 # pragma GCC diagnostic push
153 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 153 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
154 #endif 154 #endif
155 155
156 gripe_invalid_index (buf.str (), nd, dim, var); 156 gripe_invalid_index (buf.str (), nd, dim, var);
157 157
158 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 158 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
159 #pragma GCC diagnostic pop 159 # pragma GCC diagnostic pop
160 #endif 160 #endif
161 } 161 }
162 162
163 void 163 void
164 gripe_invalid_index (double n, octave_idx_type nd, octave_idx_type dim, 164 gripe_invalid_index (double n, octave_idx_type nd, octave_idx_type dim,
166 { 166 {
167 std::ostringstream buf; 167 std::ostringstream buf;
168 buf << n + 1; 168 buf << n + 1;
169 169
170 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 170 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
171 #pragma GCC diagnostic push 171 # pragma GCC diagnostic push
172 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 172 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
173 #endif 173 #endif
174 174
175 gripe_invalid_index (buf.str (), nd, dim, var); 175 gripe_invalid_index (buf.str (), nd, dim, var);
176 176
177 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 177 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
178 #pragma GCC diagnostic pop 178 # pragma GCC diagnostic pop
179 #endif 179 #endif
180 } 180 }
181 181
182 182
183 // Gripe and exception for read access beyond the bounds of an array. 183 // Gripe and exception for read access beyond the bounds of an array.