Mercurial > octave
changeset 28917:72d57dbcc305
maint: Add semicolon after break and return keywords.
* __unimplemented__.m, logm.m, inputParser.m, install.m, camlookat.m,
ginput.m, __gnuplot_draw_axes__.m, subplot.m, __splinefit__.m, ismember.m,
bicg.m, bicgstab.m, cgs.m, gmres.m, pcg.m, tfqmr.m, treelayout.m:
Add semicolon after break and return keywords.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 13 Oct 2020 20:12:56 -0700 |
parents | ec591c500fa4 |
children | d8751a1dda2a |
files | scripts/help/__unimplemented__.m scripts/linear-algebra/logm.m scripts/miscellaneous/inputParser.m scripts/pkg/private/install.m scripts/plot/appearance/camlookat.m scripts/plot/util/ginput.m scripts/plot/util/private/__gnuplot_draw_axes__.m scripts/plot/util/subplot.m scripts/polynomial/private/__splinefit__.m scripts/set/ismember.m scripts/sparse/bicg.m scripts/sparse/bicgstab.m scripts/sparse/cgs.m scripts/sparse/gmres.m scripts/sparse/pcg.m scripts/sparse/tfqmr.m scripts/sparse/treelayout.m |
diffstat | 17 files changed, 25 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/help/__unimplemented__.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/help/__unimplemented__.m Tue Oct 13 20:12:56 2020 -0700 @@ -561,7 +561,7 @@ txt = sprintf (["'%s' is a method of class '%s'; it must be ", ... "called with a '%s' argument (see 'help @@%s/%s')."], fcn, cls, cls, cls, fcn); - return + return; endif endfor txt = sprintf ("%s but has not yet been implemented.", txt);
--- a/scripts/linear-algebra/logm.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/linear-algebra/logm.m Tue Oct 13 20:12:56 2020 -0700 @@ -95,7 +95,7 @@ j(2) = find (tau / 2 <= theta, 1); if (j(1) - j(2) <= 1 || p == 2) m = j(1); - break + break; endif endif k += 1;
--- a/scripts/miscellaneous/inputParser.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/miscellaneous/inputParser.m Tue Oct 13 20:12:56 2020 -0700 @@ -420,7 +420,7 @@ ## keys. See bug #50752. idx -= 1; vidx -= 1; - break + break; endif try valid_option = opt.val (in); @@ -437,7 +437,7 @@ && isscalar (in))) idx -= 1; vidx -= 1; - break + break; else this.error (sprintf (["failed validation of %s\n", ... "Validation function: %s"],
--- a/scripts/pkg/private/install.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/pkg/private/install.m Tue Oct 13 20:12:56 2020 -0700 @@ -389,7 +389,7 @@ src = fullfile (packdir, "src"); if (! isfolder (src)) - return + return; endif ## Copy files to "inst" and "inst/arch" (this is instead of 'make install').
--- a/scripts/plot/appearance/camlookat.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/plot/appearance/camlookat.m Tue Oct 13 20:12:56 2020 -0700 @@ -73,7 +73,7 @@ endif if (isempty (hh)) - return + return; end x0 = x1 = y0 = y1 = z0 = z1 = [];
--- a/scripts/plot/util/ginput.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/plot/util/ginput.m Tue Oct 13 20:12:56 2020 -0700 @@ -65,7 +65,7 @@ else [varargout{:}] = feval (toolkit_fcn, fig, n); endif - return + return; endif x = y = button = [];
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Tue Oct 13 20:12:56 2020 -0700 @@ -2299,7 +2299,7 @@ fprintf (plot_stream, ['set format %s "%s";' "\n"], ax, fmt); if (strcmp (ticmode, "manual") && isempty (tics)) fprintf (plot_stream, "unset %stics;\nunset m%stics;\n", ax, ax); - return + return; else k = 1; ntics = numel (tics);
--- a/scripts/plot/util/subplot.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/plot/util/subplot.m Tue Oct 13 20:12:56 2020 -0700 @@ -419,7 +419,7 @@ rmappdata (h, "__subplotposition__"); rmappdata (h, "__subplotouterposition__"); endif - return + return; endif unwind_protect @@ -434,7 +434,7 @@ do_align = ! cellfun (@isempty, pos); pos = cell2mat (pos(do_align)); else - return + return; endif hsubplots = children(do_align); @@ -449,7 +449,7 @@ hsubplots(! do_align) = []; pos(! do_align,:) = []; else - return + return; endif ## Reset outerpositions to their default value
--- a/scripts/polynomial/private/__splinefit__.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/polynomial/private/__splinefit__.m Tue Oct 13 20:12:56 2020 -0700 @@ -334,7 +334,7 @@ % Return if isempty(constr) - return + return; end % Unpack constraints
--- a/scripts/set/ismember.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/set/ismember.m Tue Oct 13 20:12:56 2020 -0700 @@ -92,7 +92,7 @@ s_idx = zeros (size (real_argout{2})); s_idx(tf) = min (real_argout{2}(tf), imag_argout{2}(tf)); endif - return + return; endif ## lookup() does not handle logical values
--- a/scripts/sparse/bicg.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/sparse/bicg.m Tue Oct 13 20:12:56 2020 -0700 @@ -276,7 +276,7 @@ alpha = (s0' * prec_r0); if (abs (prod_qv) <= eps * abs (alpha)) flag = 4; - break + break; endif alpha ./= prod_qv; x += alpha * p;
--- a/scripts/sparse/bicgstab.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/sparse/bicgstab.m Tue Oct 13 20:12:56 2020 -0700 @@ -228,7 +228,7 @@ flag = 0; resvec = 0; relres = 0; - return + return; endif ## Double maxit to mind also the "half iterations" @@ -270,7 +270,7 @@ if (resvec (iter + 1) <= real_tol) # reached the tol x_min = x; iter_min = iter; - break + break; elseif (resvec (iter + 1) <= resvec (iter_min + 1)) # Found min residual x_min = x; iter_min = iter; @@ -293,7 +293,7 @@ endif if (norm (x - x_pr) <= norm (x) * eps) flag = 3; - break + break; endif x_pr = x; rho_2 = rho_1;
--- a/scripts/sparse/cgs.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/sparse/cgs.m Tue Oct 13 20:12:56 2020 -0700 @@ -212,7 +212,7 @@ flag = 0; resvec = 0; relres = 0; - return + return; endif resvec = zeros (maxit, 1); # Preallocation of resvec
--- a/scripts/sparse/gmres.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/sparse/gmres.m Tue Oct 13 20:12:56 2020 -0700 @@ -310,7 +310,7 @@ relres = 0; resvec = 0; it = [0, 0]; - return + return; endif ## gmres: function handle case
--- a/scripts/sparse/pcg.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/sparse/pcg.m Tue Oct 13 20:12:56 2020 -0700 @@ -293,7 +293,7 @@ resvec = 0; iter_min = 0; eigest = [NaN, NaN]; - return + return; endif x = x_pr = x_min = x0;
--- a/scripts/sparse/tfqmr.m Tue Oct 13 19:56:23 2020 -0700 +++ b/scripts/sparse/tfqmr.m Tue Oct 13 20:12:56 2020 -0700 @@ -225,7 +225,7 @@ flag = 0; resvec = 0; relres = 0; - return + return; endif x = x_pr = x_min = x0; @@ -257,7 +257,7 @@ ## Essentially the next iteration doesn't change x, ## and the iter after this will have a division by zero flag = 4; - break + break; endif alpha = rho_1 / v_r; u_1 = u - alpha * v; # u at the after iteration @@ -279,7 +279,7 @@ ## Essentially the next iteration doesn't change x, ## and the iter after this will have a division by zero flag = 4; - break + break; endif beta = rho_1 / rho_2; u_1 = w + beta * u; # u at the after iteration @@ -298,7 +298,7 @@ endif if (norm (x_pr - x) <= norm (x) * eps) flag = 3; # Stagnation - break + break; endif x_pr = x; it = -it;