changeset 21076:b433f9990452

strip trailing whitespace from files * NEWS, oop.txi, ov.h, dSparse.h, f77-fcn.h, lo-array-gripes.h, display.m, int2str.m, num2str.m, subsindex.m, fileattrib.m, parser.tst: Strip trailing whitespace.
author John W. Eaton <jwe@octave.org>
date Fri, 15 Jan 2016 12:46:58 -0500
parents 5ed379c8decd
children 40f931a63a91
files NEWS doc/interpreter/oop.txi libinterp/octave-value/ov.h liboctave/array/dSparse.h liboctave/cruft/misc/f77-fcn.h liboctave/util/lo-array-gripes.h scripts/general/display.m scripts/general/int2str.m scripts/general/num2str.m scripts/general/subsindex.m scripts/miscellaneous/fileattrib.m test/parser.tst
diffstat 12 files changed, 26 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Fri Jan 15 09:19:46 2016 -0800
+++ b/NEWS	Fri Jan 15 12:46:58 2016 -0500
@@ -110,7 +110,7 @@
     and "current_liboctave_error_with_id_handler".  If a programmer has
     installed their own custom error handling routines when directly linking
     with liboctave then these must be updated to throw an exception and not
-    return to the calling program. 
+    return to the calling program.
 
  ** New configure option, --enable-address-sanitizer-flags, to build Octave
     with memory allocator checks (similar to those in valgrind) built in.
--- a/doc/interpreter/oop.txi	Fri Jan 15 09:19:46 2016 -0800
+++ b/doc/interpreter/oop.txi	Fri Jan 15 12:46:58 2016 -0500
@@ -312,7 +312,7 @@
 @end group
 @end example
 
-Objects can also be used themselves as the index in a subscripted expression 
+Objects can also be used themselves as the index in a subscripted expression
 and this is controlled by the @code{subsindex} function.
 
 @DOCSTRING(subsindex)
--- a/libinterp/octave-value/ov.h	Fri Jan 15 09:19:46 2016 -0800
+++ b/libinterp/octave-value/ov.h	Fri Jan 15 12:46:58 2016 -0500
@@ -1179,7 +1179,7 @@
 
   void make_storable_value (void);
 
-  // FIXME: These should probably be private.  
+  // FIXME: These should probably be private.
   // Conversions.  If a user of this class wants a certain kind of constant,
   // he should simply ask for it, and we should convert it if possible.
 
--- a/liboctave/array/dSparse.h	Fri Jan 15 09:19:46 2016 -0800
+++ b/liboctave/array/dSparse.h	Fri Jan 15 12:46:58 2016 -0500
@@ -121,13 +121,13 @@
   friend OCTAVE_API SparseMatrix real (const SparseComplexMatrix& a);
   friend OCTAVE_API SparseMatrix imag (const SparseComplexMatrix& a);
 
-  OCTAVE_DEPRECATED OCTAVE_API friend 
+  OCTAVE_DEPRECATED OCTAVE_API friend
   SparseMatrix atan2 (const double& x, const SparseMatrix& y);
 
-  OCTAVE_DEPRECATED OCTAVE_API friend 
+  OCTAVE_DEPRECATED OCTAVE_API friend
   SparseMatrix atan2 (const SparseMatrix& x, const double& y);
 
-  OCTAVE_DEPRECATED OCTAVE_API friend 
+  OCTAVE_DEPRECATED OCTAVE_API friend
   SparseMatrix atan2 (const SparseMatrix& x, const SparseMatrix& y);
 
   SparseMatrix transpose (void) const
--- a/liboctave/cruft/misc/f77-fcn.h	Fri Jan 15 09:19:46 2016 -0800
+++ b/liboctave/cruft/misc/f77-fcn.h	Fri Jan 15 12:46:58 2016 -0500
@@ -284,7 +284,7 @@
 
 
 OCTAVE_NORETURN CRUFT_API extern
-F77_RET_T 
+F77_RET_T
 F77_FUNC (xstopx, XSTOPX) (F77_CONST_CHAR_ARG_DECL
                            F77_CHAR_ARG_LEN_DECL);
 
--- a/liboctave/util/lo-array-gripes.h	Fri Jan 15 09:19:46 2016 -0800
+++ b/liboctave/util/lo-array-gripes.h	Fri Jan 15 12:46:58 2016 -0500
@@ -109,51 +109,51 @@
 
 extern OCTAVE_API const char *warning_id_singular_matrix;
 
-OCTAVE_NORETURN OCTAVE_API extern void 
+OCTAVE_NORETURN OCTAVE_API extern void
 gripe_nan_to_logical_conversion (void);
 
-OCTAVE_NORETURN OCTAVE_API extern void 
+OCTAVE_NORETURN OCTAVE_API extern void
 gripe_nan_to_character_conversion (void);
 
-OCTAVE_NORETURN OCTAVE_API extern void 
+OCTAVE_NORETURN OCTAVE_API extern void
 gripe_nonconformant (const char *op,
                      octave_idx_type op1_len,
                      octave_idx_type op2_len);
 
-OCTAVE_NORETURN OCTAVE_API extern void 
+OCTAVE_NORETURN OCTAVE_API extern void
 gripe_nonconformant (const char *op,
                      octave_idx_type op1_nr, octave_idx_type op1_nc,
                      octave_idx_type op2_nr, octave_idx_type op2_nc);
 
 
-OCTAVE_NORETURN OCTAVE_API extern void 
+OCTAVE_NORETURN OCTAVE_API extern void
 gripe_nonconformant (const char *op, const dim_vector& op1_dims,
                      const dim_vector& op2_dims);
 
-OCTAVE_NORETURN OCTAVE_API extern void 
+OCTAVE_NORETURN OCTAVE_API extern void
 gripe_index_out_of_range (int nd, int dim,
                           octave_idx_type iext, octave_idx_type ext,
                           const dim_vector& d);
 
-OCTAVE_NORETURN OCTAVE_API extern void 
+OCTAVE_NORETURN OCTAVE_API extern void
 gripe_index_out_of_range (int nd, int dim,
                           octave_idx_type iext, octave_idx_type ext);
 
-OCTAVE_NORETURN OCTAVE_API extern void 
+OCTAVE_NORETURN OCTAVE_API extern void
 gripe_del_index_out_of_range (bool is1d, octave_idx_type iext,
                               octave_idx_type ext);
 
-OCTAVE_NORETURN OCTAVE_API extern void 
+OCTAVE_NORETURN OCTAVE_API extern void
 gripe_invalid_index (double, octave_idx_type nd = 0,
                      octave_idx_type dim = 0,
                      const std::string& var = "");
 
-OCTAVE_NORETURN OCTAVE_API extern void 
+OCTAVE_NORETURN OCTAVE_API extern void
 gripe_invalid_index (octave_idx_type n, octave_idx_type nd = 0,
                      octave_idx_type dim = 0,
                      const std::string& var = "");
 
-OCTAVE_NORETURN OCTAVE_API extern void 
+OCTAVE_NORETURN OCTAVE_API extern void
 gripe_invalid_index (const std::string& idx, octave_idx_type nd = 0,
                      octave_idx_type dim = 0,
                      const std::string& var = "");
--- a/scripts/general/display.m	Fri Jan 15 09:19:46 2016 -0800
+++ b/scripts/general/display.m	Fri Jan 15 12:46:58 2016 -0500
@@ -22,7 +22,7 @@
 ##
 ## The Octave interpreter calls the @code{display} function whenever it needs
 ## to present a class on-screen.  Typically, this would be a statement which
-## does not end in a semicolon to suppress output.  For example, 
+## does not end in a semicolon to suppress output.  For example,
 ##
 ## @example
 ## myobj = myclass (@dots{})
@@ -36,7 +36,7 @@
 ## myobj = myclass (@dots{})
 ##   @result{} myobj = <class myclass>
 ## @end example
-## 
+##
 ## @seealso{class, subsref, subsasgn}
 ## @end deftypefn
 
--- a/scripts/general/int2str.m	Fri Jan 15 09:19:46 2016 -0800
+++ b/scripts/general/int2str.m	Fri Jan 15 12:46:58 2016 -0500
@@ -46,7 +46,7 @@
 ##
 ## Non-integers are rounded to integers before display.  Only the real part
 ## of complex numbers is displayed.
-## 
+##
 ## @seealso{sprintf, num2str, mat2str}
 ## @end deftypefn
 
--- a/scripts/general/num2str.m	Fri Jan 15 09:19:46 2016 -0800
+++ b/scripts/general/num2str.m	Fri Jan 15 12:46:58 2016 -0500
@@ -176,7 +176,7 @@
     idx{2} = perm;
     x = horzcat (real (x), imag (x));
     x = x(idx{:});
-    
+
     fmt = [deblank(repmat(fmt, 1, nc * (nd - 1))), "\n"];
     tmp = sprintf (fmt, permute (x, [2, 3:nd, 1]));
 
--- a/scripts/general/subsindex.m	Fri Jan 15 09:19:46 2016 -0800
+++ b/scripts/general/subsindex.m	Fri Jan 15 12:46:58 2016 -0500
@@ -61,7 +61,7 @@
 ## @end deftypefn
 
 function idx = subsindex (obj)
-  
+
   if (nargin != 1)
     print_usage ();
   endif
@@ -72,7 +72,7 @@
 endfunction
 
 
-%!error <not defined for class "double"> subsindex (1) 
+%!error <not defined for class "double"> subsindex (1)
 
 ## Test input validation
 %!error subsindex ()
--- a/scripts/miscellaneous/fileattrib.m	Fri Jan 15 09:19:46 2016 -0800
+++ b/scripts/miscellaneous/fileattrib.m	Fri Jan 15 12:46:58 2016 -0500
@@ -107,7 +107,7 @@
           msgid = "fileattrib";
           break;
         endif
-        attrib = regexprep (attrib, '\S+:.*', ""); 
+        attrib = regexprep (attrib, '\S+:.*', "");
         r(i).archive = any (attrib == "A");
         r(i).system = any (attrib == "S");
         r(i).hidden = any (attrib == "H");
--- a/test/parser.tst	Fri Jan 15 09:19:46 2016 -0800
+++ b/test/parser.tst	Fri Jan 15 12:46:58 2016 -0500
@@ -317,6 +317,6 @@
 %! b = {1 @sin 2 @cos};
 %! assert (a, b)
 
-## Maybe unnecessary, but check that further changes to parser don't 
+## Maybe unnecessary, but check that further changes to parser don't
 ## invalidate error handling (bug #46534).
 #!error <vertical dimensions mismatch \(1x2 vs 1x1\)> z = [1, 2; 3]