Mercurial > hg > octave-lyh
comparison scripts/deprecated/geometric_cdf.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 |
---|---|
31 | 31 |
32 persistent warned = false; | 32 persistent warned = false; |
33 if (! warned) | 33 if (! warned) |
34 warned = true; | 34 warned = true; |
35 warning ("Octave:deprecated-function", | 35 warning ("Octave:deprecated-function", |
36 ["geometric_cdf is obsolete and will be removed from a future\n", | 36 "geometric_cdf is obsolete and will be removed from a future version of Octave; please use geocdf instead"); |
37 "version of Octave, please use geocdf instead"]); | |
38 endif | 37 endif |
39 | 38 |
40 cdf = geocdf (varargin{:}); | 39 cdf = geocdf (varargin{:}); |
41 | 40 |
42 endfunction | 41 endfunction |