changeset 13174:bd2cd4fd3edf stable

maint: use specific endif, endfor tokens instead of simple end * gmres.m, getappdata.m, setappdata.m, axis.m: Use specific endif, endfor tokens instead of simple end.
author John W. Eaton <jwe@octave.org>
date Tue, 20 Sep 2011 15:33:10 -0400
parents 25467719730b
children 8aaaef4a69aa 88bd1d1d6657
files scripts/linear-algebra/gmres.m scripts/miscellaneous/getappdata.m scripts/miscellaneous/setappdata.m scripts/plot/axis.m
diffstat 4 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/linear-algebra/gmres.m
+++ b/scripts/linear-algebra/gmres.m
@@ -76,7 +76,7 @@
 
   if (nargin < 2 || nargin > 8)
     print_usage ();    
-  end
+  endif
       
   if (ischar (A))
     Ax = str2func (A);
--- a/scripts/miscellaneous/getappdata.m
+++ b/scripts/miscellaneous/getappdata.m
@@ -40,7 +40,7 @@
         appdata.(name) = [];
       end_try_catch
       val(nh) = {appdata.(name)};
-    end
+    endfor
     if (nh == 1)
       val = val{1};
     endif
--- a/scripts/miscellaneous/setappdata.m
+++ b/scripts/miscellaneous/setappdata.m
@@ -33,7 +33,7 @@
   for nh = 1:numel(h)
     if (! isfield (get (h(nh)), "__appdata__"))
       addproperty ("__appdata__", h(nh), "any", struct ());
-    end
+    endif
     appdata = get (h(nh), "__appdata__");
     for narg = 1:2:numel(varargin)
       if (iscellstr (varargin{narg}))
--- a/scripts/plot/axis.m
+++ b/scripts/plot/axis.m
@@ -323,11 +323,11 @@
       if (iscell (data))
         for i = 1:length(data)
           data{i}(data{i}<=0) = NaN;
-        end
+        endfor
       else
         data(data<=0) = NaN;
-      end
-    end
+      endif
+    endif
     if (iscell (data))
       data = data (find (! cellfun (@isempty, data)));
       if (! isempty (data))