# HG changeset patch # User jwe # Date 1129663102 0 # Node ID 709307492cd7081d3c0d63f602fdc014853fd015 # Parent 9e3efbc3070a25c6881b8ac831b23f20d9082094 [project @ 2005-10-18 19:18:21 by jwe] diff -r 9e3efbc3070a -r 709307492cd7 scripts/ChangeLog --- a/scripts/ChangeLog Mon Oct 17 20:11:52 2005 +0000 +++ b/scripts/ChangeLog Tue Oct 18 19:18:22 2005 +0000 @@ -1,3 +1,8 @@ +2005-10-18 Keith Goodman + + * general/randperm.m: Improve compatibility by allowing input + value of zero. + 2005-10-13 John W. Eaton * plot/__plt__.m, plot/__errplot__.m, plot/replot.m: diff -r 9e3efbc3070a -r 709307492cd7 scripts/general/randperm.m --- a/scripts/general/randperm.m Mon Oct 17 20:11:52 2005 +0000 +++ b/scripts/general/randperm.m Tue Oct 18 19:18:22 2005 +0000 @@ -29,10 +29,10 @@ function retval = randperm (n) if (nargin == 1 && isscalar (n) && floor (n) == n) - if (n > 0) + if (n >= 0) [junk, retval] = sort (rand (1, n)); else - error ("randperm: argument must be positive"); + error ("randperm: argument must be non-negative"); endif else usage ("randperm (n)"); diff -r 9e3efbc3070a -r 709307492cd7 src/ChangeLog --- a/src/ChangeLog Mon Oct 17 20:11:52 2005 +0000 +++ b/src/ChangeLog Tue Oct 18 19:18:22 2005 +0000 @@ -1,3 +1,8 @@ +2005-10-18 Arno J. Klaassen + + * DLD-FUNCTIONS/gplot.l (gnuplot::handle_title): + Omit class name from declaration. + 2005-10-17 Keith Goodman * DLD-FUNCTIONS/sort.cc: Doc string fix. diff -r 9e3efbc3070a -r 709307492cd7 src/DLD-FUNCTIONS/gplot.l --- a/src/DLD-FUNCTIONS/gplot.l Mon Oct 17 20:11:52 2005 +0000 +++ b/src/DLD-FUNCTIONS/gplot.l Tue Oct 18 19:18:22 2005 +0000 @@ -753,7 +753,7 @@ std::string makeplot (std::string caller, std::string args) throw (gpt_parse_error); - std::string gnuplot::handle_title (int& lasttok); + std::string handle_title (int& lasttok); }; gnuplot *gnuplot::instance = 0;