# HG changeset patch # User jwe # Date 1129663102 0 # Node ID 709307492cd7081d3c0d63f602fdc014853fd015 # Parent 9e3efbc3070a25c6881b8ac831b23f20d9082094 [project @ 2005-10-18 19:18:21 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -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 --git a/scripts/general/randperm.m b/scripts/general/randperm.m --- a/scripts/general/randperm.m +++ b/scripts/general/randperm.m @@ -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 --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 --git a/src/DLD-FUNCTIONS/gplot.l b/src/DLD-FUNCTIONS/gplot.l --- a/src/DLD-FUNCTIONS/gplot.l +++ b/src/DLD-FUNCTIONS/gplot.l @@ -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;