changeset 5626:52670da7b29b octave-forge

Change order of input arguments (from Carlo de Falco)
author hauberg
date Wed, 13 May 2009 13:48:25 +0000
parents c4eab3671e06
children d7f3f70730eb
files extra/generate_html/inst/generate_html_manual.m extra/generate_html/inst/generate_package_html.m
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/extra/generate_html/inst/generate_html_manual.m	Tue May 12 17:29:10 2009 +0000
+++ b/extra/generate_html/inst/generate_html_manual.m	Wed May 13 13:48:25 2009 +0000
@@ -117,7 +117,7 @@
   for k = 1:length (index)
     if (!isempty (index {k}))
       printf ("Chapter: %s\n", index {k}.name); fflush (stdout);
-      generate_package_html (index {k}, full_fun_dir, :, options, root);
+      generate_package_html (index {k}, full_fun_dir, options, :, root);
       %reference = txi2reference (index {k}.filename);
     endif
   endfor
--- a/extra/generate_html/inst/generate_package_html.m	Tue May 12 17:29:10 2009 +0000
+++ b/extra/generate_html/inst/generate_package_html.m	Wed May 13 13:48:25 2009 +0000
@@ -48,7 +48,7 @@
 ## @seealso{get_html_options}
 ## @end deftypefn
 
-function generate_package_html (name, outdir = ".", fundir = outdir, options = struct (), root = "")
+function generate_package_html (name, outdir = ".", options = struct (), fundir = outdir, root = "")
   ## Check input
   if (ischar (name))
     pkg ("load", name);
@@ -65,7 +65,7 @@
   endif
   
   if (!ischar (fundir))
-    error ("generate_package_html: third input argument must be a string");
+    error ("generate_package_html: fourth input argument must be a string");
   endif
   
   ## Create output directory if needed
@@ -81,7 +81,7 @@
   if (ischar (options))
     options = get_html_options (options);
   elseif (!isstruct (options))
-    error ("generate_package_html: fourth input argument must be a string or a structure");
+    error ("generate_package_html: third input argument must be a string or a structure");
   endif
   
   ##################################################