Mercurial > octave
changeset 20927:1da6c81e6486
style fix for function declarations
* sleep.m, usleep.m, isocolors.m, isonormals.m:
Write "function foo (...)" instead of "function [] = foo (...)".
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 17 Dec 2015 11:42:42 -0500 |
parents | 5df1d099e56d |
children | 2b8447888e0a |
files | scripts/deprecated/sleep.m scripts/deprecated/usleep.m scripts/plot/draw/isocolors.m scripts/plot/draw/isonormals.m |
diffstat | 4 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/deprecated/sleep.m Thu Dec 17 11:38:40 2015 -0500 +++ b/scripts/deprecated/sleep.m Thu Dec 17 11:42:42 2015 -0500 @@ -27,7 +27,7 @@ ## @seealso{pause} ## @end deftypefn -function [] = sleep (seconds) +function sleep (seconds) persistent warned = false; if (! warned)
--- a/scripts/deprecated/usleep.m Thu Dec 17 11:38:40 2015 -0500 +++ b/scripts/deprecated/usleep.m Thu Dec 17 11:42:42 2015 -0500 @@ -28,7 +28,7 @@ ## @seealso{pause} ## @end deftypefn -function [] = usleep (microseconds) +function usleep (microseconds) persistent warned = false; if (! warned)
--- a/scripts/plot/draw/isocolors.m Thu Dec 17 11:38:40 2015 -0500 +++ b/scripts/plot/draw/isocolors.m Thu Dec 17 11:42:42 2015 -0500 @@ -51,7 +51,7 @@ ## For example: ## ## @example -## function [] = isofinish (p) +## function isofinish (p) ## set (gca, "PlotBoxAspectRatioMode", "manual", ... ## "PlotBoxAspectRatio", [1 1 1]); ## set (p, "FaceColor", "interp");
--- a/scripts/plot/draw/isonormals.m Thu Dec 17 11:38:40 2015 -0500 +++ b/scripts/plot/draw/isonormals.m Thu Dec 17 11:42:42 2015 -0500 @@ -50,7 +50,7 @@ ## @c Set example in small font to prevent overfull line ## ## @smallexample -## function [] = isofinish (p) +## function isofinish (p) ## set (gca, "PlotBoxAspectRatioMode", "manual", ... ## "PlotBoxAspectRatio", [1 1 1]); ## set (p, "VertexNormals", -get (p,"VertexNormals")); # Revert normals