Mercurial > hg > octave-nkf
comparison scripts/deprecated/polyinteg.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 | 6f2d95255911 |
comparison
equal
deleted
inserted
replaced
7703:e44e4cd2129d | 7704:1cdb42b372e8 |
---|---|
36 | 36 |
37 persistent warned = false; | 37 persistent warned = false; |
38 if (! warned) | 38 if (! warned) |
39 warned = true; | 39 warned = true; |
40 warning ("Octave:deprecated-function", | 40 warning ("Octave:deprecated-function", |
41 ["polyinteg is obsolete and will be removed from a future\n", | 41 "polyinteg is obsolete and will be removed from a future version of Octave; please use polyint instead"); |
42 "version of Octave, please use polyint instead"]); | |
43 endif | 42 endif |
44 | 43 |
45 y = polyint (p); | 44 y = polyint (p); |
46 | 45 |
47 endfunction | 46 endfunction |