Mercurial > hg > octave-lyh
comparison scripts/deprecated/uniform_pdf.m @ 7704:1cdb42b372e8
don't embed newline in warning messages in deprecated functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Apr 2008 12:56:48 -0400 |
parents | 0a362fa8f3c8 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
7703:e44e4cd2129d | 7704:1cdb42b372e8 |
---|---|
33 | 33 |
34 persistent warned = false; | 34 persistent warned = false; |
35 if (! warned) | 35 if (! warned) |
36 warned = true; | 36 warned = true; |
37 warning ("Octave:deprecated-function", | 37 warning ("Octave:deprecated-function", |
38 ["uniform_pdf is obsolete and will be removed from a future\n", | 38 "uniform_pdf is obsolete and will be removed from a future version of Octave; please use unifpdf instead"); |
39 "version of Octave, please use unifpdf instead"]); | |
40 endif | 39 endif |
41 | 40 |
42 pdf = unifpdf (varargin{:}); | 41 pdf = unifpdf (varargin{:}); |
43 | 42 |
44 endfunction | 43 endfunction |