Mercurial > octave
changeset 28943:e3a337a57588
maint: Use only one '#' character for comments that trail code.
* isequal.m, isequaln.m, fieldnames.m, ode15s.m, __ezplot__.m,
__gnuplot_draw_axes__.m, bicgstab.m, duplicate_parent_nested2.m:
Use only one '#' character for comments that trail code.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 15 Oct 2020 19:56:54 -0700 |
parents | fc4bb4bd1d5e |
children | d39b09b4c5db |
files | scripts/general/isequal.m scripts/general/isequaln.m scripts/miscellaneous/fieldnames.m scripts/ode/ode15s.m scripts/plot/draw/private/__ezplot__.m scripts/plot/util/private/__gnuplot_draw_axes__.m scripts/sparse/bicgstab.m test/bug-50014/duplicate_parent_nested2.m |
diffstat | 8 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/general/isequal.m Thu Oct 15 14:30:01 2020 -0700 +++ b/scripts/general/isequal.m Thu Oct 15 19:56:54 2020 -0700 @@ -176,7 +176,7 @@ endif - else ## More than two args. This is going to be slower in general. + else # More than two args. This is going to be slower in general. if (ischar (x) && all (cellfun ("isclass", varargin, "char"))) ## char type. Optimization, strcmp is ~35% faster than '==' operator.
--- a/scripts/general/isequaln.m Thu Oct 15 14:30:01 2020 -0700 +++ b/scripts/general/isequaln.m Thu Oct 15 19:56:54 2020 -0700 @@ -174,7 +174,7 @@ endif - else ## More than two args. This is going to be slower in general. + else # More than two args. This is going to be slower in general. if (ischar (x) && all (cellfun ("isclass", varargin, "char"))) ## char type. Optimization, strcmp is ~35% faster than '==' operator.
--- a/scripts/miscellaneous/fieldnames.m Thu Oct 15 14:30:01 2020 -0700 +++ b/scripts/miscellaneous/fieldnames.m Thu Oct 15 19:56:54 2020 -0700 @@ -53,9 +53,9 @@ names = __fieldnames__ (obj); elseif (isobject (obj)) try - names = properties (obj); ## classdef object + names = properties (obj); # classdef object catch - names = __fieldnames__ (obj); ## @class object + names = __fieldnames__ (obj); # @class object end_try_catch elseif (isjava (obj) || ischar (obj)) ## FIXME: Function prototype that accepts java obj exists, but doesn't
--- a/scripts/ode/ode15s.m Thu Oct 15 14:30:01 2020 -0700 +++ b/scripts/ode/ode15s.m Thu Oct 15 19:56:54 2020 -0700 @@ -270,7 +270,7 @@ options.havetimedep, options.havejacfun); options.havejacfun = true; - else ## All matrices are constant + else # All matrices are constant options.Jacobian = {[- options.Jacobian], [options.Mass]}; endif
--- a/scripts/plot/draw/private/__ezplot__.m Thu Oct 15 14:30:01 2020 -0700 +++ b/scripts/plot/draw/private/__ezplot__.m Thu Oct 15 19:56:54 2020 -0700 @@ -364,7 +364,7 @@ Y = __eliminate_sing__ (Y); Z = __eliminate_sing__ (Z); endif - else ## non-parametric plots + else # non-parametric plots if (isplot && nargs == 2) Z = feval (fun, X, Y);
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Thu Oct 15 14:30:01 2020 -0700 +++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Thu Oct 15 19:56:54 2020 -0700 @@ -107,7 +107,7 @@ fprintf (plot_stream, "set rmargin screen %.15g;\n", pos(1)+pos(3)/2+x(1)*pos(3)/2); sz_str = ""; - else ## positionconstraint == outerposition + else # positionconstraint == outerposition fprintf (plot_stream, "unset tmargin;\n"); fprintf (plot_stream, "unset bmargin;\n"); fprintf (plot_stream, "unset lmargin;\n");
--- a/scripts/sparse/bicgstab.m Thu Oct 15 14:30:01 2020 -0700 +++ b/scripts/sparse/bicgstab.m Thu Oct 15 19:56:54 2020 -0700 @@ -309,7 +309,7 @@ endwhile resvec = resvec (1:iter+1,1); - relres = resvec (iter_min + 1) / norm_b; ## I set the relative residual + relres = resvec (iter_min + 1) / norm_b; # I set the relative residual iter /= 2; iter_min /= 2;
--- a/test/bug-50014/duplicate_parent_nested2.m Thu Oct 15 14:30:01 2020 -0700 +++ b/test/bug-50014/duplicate_parent_nested2.m Thu Oct 15 19:56:54 2020 -0700 @@ -4,8 +4,8 @@ function bug () endfunction endfunction - function bug () ## no error here - function bug () ## error here (duplicates parent name) + function bug () # no error here + function bug () # error here (duplicates parent name) endfunction endfunction endfunction