changeset 16907:04f4f067eb33

imformats: fix typos and silence some statements. * imformats: replace some varargin by varargout (typos) and add missing semi-colon to silence some statements.
author Carnë Draug <carandraug@octave.org>
date Sat, 06 Jul 2013 04:08:17 +0100
parents bfad37d33435
children 1c4be5dcacd5
files scripts/image/imformats.m
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/image/imformats.m	Sat Jul 06 04:28:04 2013 +0100
+++ b/scripts/image/imformats.m	Sat Jul 06 04:08:17 2013 +0100
@@ -86,7 +86,7 @@
           endif
           arrayfun (@is_valid_format, arg2);
           formats(end + numel (b)) = arg2;
-          varargin{1} = formats;
+          varargout{1} = formats;
 
         case {"remove", "update"},
           if (! ischar (arg2))
@@ -95,7 +95,7 @@
           ## FIXME: suppose a format with multiple extensions. If one of
           ##        them is requested to be removed, should we remove the
           ##        whole format, or just that extension from the format?
-          match = find_ext_idx (formats, arg2)
+          match = find_ext_idx (formats, arg2);
           if (! any (match))
             error ("imformats: no EXT `%s' found.", arg2);
           endif
@@ -109,19 +109,19 @@
             is_valid_format (arg3);
             formats(match) = arg3;
           endif
-          varargin{1} = formats;
+          varargout{1} = formats;
 
         case "factory",
           formats = default_formats ();
         otherwise
           ## then we look for a format with that extension.
-          match = find_ext_idx (formats, arg1)
+          match = find_ext_idx (formats, arg1);
           ## For matlab compatibility, if we don't find any format we must
           ## return an empty struct with NO fields. We can't use match as mask
           if (any (match))
-            varargin{1} = formats(match);
+            varargout{1} = formats(match);
           else
-            varargin{1} = struct ();
+            varargout{1} = struct ();
           endif
       endswitch
     else