# HG changeset patch # User Rik # Date 1576014468 28800 # Node ID 5dcdd5bd46e2ed46abac9248a59c12189d7904b0 # Parent e7dd7d98a0580b9c6f01e9ea5d97eccf6401e8a2 maint: remove trailing spaces from code. * strfns.cc, oct-parse.yy, runtests.m, sizemax.m, namedargs2cell.m, intersect.m, setdiff.m, movprod.m, movstd.m, movvar.m, web.m: remove trailing spaces from code. diff -r e7dd7d98a058 -r 5dcdd5bd46e2 libinterp/corefcn/strfns.cc --- a/libinterp/corefcn/strfns.cc Tue Dec 10 13:43:36 2019 -0800 +++ b/libinterp/corefcn/strfns.cc Tue Dec 10 13:47:48 2019 -0800 @@ -1088,9 +1088,9 @@ { if (args.length () != 0) print_usage (); - + static octave_value_list retval = ovl ("\n"); - + return retval; } diff -r e7dd7d98a058 -r 5dcdd5bd46e2 libinterp/parse-tree/oct-parse.yy --- a/libinterp/parse-tree/oct-parse.yy Tue Dec 10 13:43:36 2019 -0800 +++ b/libinterp/parse-tree/oct-parse.yy Tue Dec 10 13:47:48 2019 -0800 @@ -5359,7 +5359,7 @@ if (nargin < 1 || nargin > 2) print_usage (); - if (! args(0).is_string () || args(0).rows () > 1 || args(0).ndims () != 2) + if (! args(0).is_string () || args(0).rows () > 1 || args(0).ndims () != 2) error ("eval: TRY must be a string"); std::string try_code = args(0).string_value (); @@ -5369,7 +5369,7 @@ else { if (! args(1).is_string () || args(1).rows () > 1 - || args(1).ndims () != 2) + || args(1).ndims () != 2) error ("eval: CATCH must be a string"); std::string catch_code = args(1).string_value (); diff -r e7dd7d98a058 -r 5dcdd5bd46e2 scripts/deprecated/runtests.m --- a/scripts/deprecated/runtests.m Tue Dec 10 13:43:36 2019 -0800 +++ b/scripts/deprecated/runtests.m Tue Dec 10 13:47:48 2019 -0800 @@ -45,5 +45,5 @@ "runtests is obsolete and will be removed from a future version of Octave, please use oruntests instead\n"); endif - oruntests (varargin{:}); + oruntests (varargin{:}); endfunction diff -r e7dd7d98a058 -r 5dcdd5bd46e2 scripts/deprecated/sizemax.m --- a/scripts/deprecated/sizemax.m Tue Dec 10 13:43:36 2019 -0800 +++ b/scripts/deprecated/sizemax.m Tue Dec 10 13:47:48 2019 -0800 @@ -22,7 +22,7 @@ ## @code{sizemax} is deprecated and will be removed in Octave version 8. ## ## Return the largest value allowed for the size of an array. -## +## ## If Octave is compiled with 64-bit indexing, the result is of class int64, ## otherwise it is of class int32. The maximum array size is slightly smaller ## than the maximum value allowable for the relevant class as reported by diff -r e7dd7d98a058 -r 5dcdd5bd46e2 scripts/miscellaneous/namedargs2cell.m --- a/scripts/miscellaneous/namedargs2cell.m Tue Dec 10 13:43:36 2019 -0800 +++ b/scripts/miscellaneous/namedargs2cell.m Tue Dec 10 13:47:48 2019 -0800 @@ -38,14 +38,14 @@ ## @end deftypefn function c = namedargs2cell (s) - + if (nargin != 1 || nargout > 1) print_usage (); endif if (! isstruct (s) || ! isscalar (s)) error ("namedargs2cell: S must be a scalar structure"); endif - + c = reshape ([fieldnames(s), struct2cell(s)].', 1, []); endfunction diff -r e7dd7d98a058 -r 5dcdd5bd46e2 scripts/set/intersect.m --- a/scripts/set/intersect.m Tue Dec 10 13:43:36 2019 -0800 +++ b/scripts/set/intersect.m Tue Dec 10 13:47:48 2019 -0800 @@ -235,7 +235,7 @@ ## Test "legacy" argument %!test -%! a = [7 1 7 7 4]; +%! a = [7 1 7 7 4]; %! b = [7 0 4 4 0]; %! [c, ia, ib] = intersect (a, b); %! assert (c, [4, 7]); diff -r e7dd7d98a058 -r 5dcdd5bd46e2 scripts/set/setdiff.m --- a/scripts/set/setdiff.m Tue Dec 10 13:43:36 2019 -0800 +++ b/scripts/set/setdiff.m Tue Dec 10 13:47:48 2019 -0800 @@ -192,7 +192,7 @@ %! assert (c, [1, 4 ,5; 7, 9 7]); %! assert (ia, [5; 3]); -## Output orientation with "legacy" option +## Output orientation with "legacy" option %!assert (size (setdiff ([1:5], [2:3], "legacy")), [1, 3]) %!assert (size (setdiff ([1:5]', [2:3], "legacy")), [1, 3]) %!assert (size (setdiff ([1:5], [2:3]', "legacy")), [1, 3]) diff -r e7dd7d98a058 -r 5dcdd5bd46e2 scripts/statistics/movprod.m --- a/scripts/statistics/movprod.m Tue Dec 10 13:43:36 2019 -0800 +++ b/scripts/statistics/movprod.m Tue Dec 10 13:47:48 2019 -0800 @@ -49,7 +49,7 @@ ## ## The optional string argument @qcode{"@var{nancond}"} controls whether ## @code{NaN} and @code{NA} values should be included (@qcode{"includenan"}), -## or excluded (@qcode{"omitnan"}), from the data passed to @code{movprod}. +## or excluded (@qcode{"omitnan"}), from the data passed to @code{movprod}. ## The default is @qcode{"includenan"}. Caution: the @qcode{"omitnan"} ## option is not yet implemented. ## diff -r e7dd7d98a058 -r 5dcdd5bd46e2 scripts/statistics/movstd.m --- a/scripts/statistics/movstd.m Tue Dec 10 13:43:36 2019 -0800 +++ b/scripts/statistics/movstd.m Tue Dec 10 13:47:48 2019 -0800 @@ -169,7 +169,7 @@ %! y0 = movstd (x, 4, 0); %! assert (y, y0); %! y1 = movstd (x, 4, 1); -%! assert (y1(1:3), sqrt ([1/4, 2/3, 5/4])); +%! assert (y1(1:3), sqrt ([1/4, 2/3, 5/4])); ## Test input validation %!error movstd () diff -r e7dd7d98a058 -r 5dcdd5bd46e2 scripts/statistics/movvar.m --- a/scripts/statistics/movvar.m Tue Dec 10 13:43:36 2019 -0800 +++ b/scripts/statistics/movvar.m Tue Dec 10 13:47:48 2019 -0800 @@ -168,7 +168,7 @@ %! y0 = movvar (x, 4, 0); %! assert (y, y0); %! y1 = movvar (x, 4, 1); -%! assert (y1(1:3), [1/4, 2/3, 5/4]); +%! assert (y1(1:3), [1/4, 2/3, 5/4]); ## Test input validation %!error movvar () diff -r e7dd7d98a058 -r 5dcdd5bd46e2 scripts/web/web.m --- a/scripts/web/web.m Tue Dec 10 13:43:36 2019 -0800 +++ b/scripts/web/web.m Tue Dec 10 13:47:48 2019 -0800 @@ -102,7 +102,7 @@ if (any (strcmp (varargin, "-browser"))) url = []; endif - + if (nargout > 0) status = sts; endif