Mercurial > octave-nkf
comparison scripts/deprecated/com2str.m @ 11744:eb0a86b3deb9 release-3-0-x
don't embed newline in warning messages in deprecated functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Apr 2008 12:57:36 -0400 |
parents | 72830070a17b |
children |
comparison
equal
deleted
inserted
replaced
11743:c7070f6cadc8 | 11744:eb0a86b3deb9 |
---|---|
39 | 39 |
40 persistent warned = false; | 40 persistent warned = false; |
41 if (! warned) | 41 if (! warned) |
42 warned = true; | 42 warned = true; |
43 warning ("Octave:deprecated-function", | 43 warning ("Octave:deprecated-function", |
44 ["com2str is obsolete and will be removed from a future\n", | 44 "com2str is obsolete and will be removed from a future version of Octave; please use num2str instead"); |
45 "version of Octave, please use num2str instead"]); | |
46 endif | 45 endif |
47 | 46 |
48 if (nargin < 1 || nargin > 2) | 47 if (nargin < 1 || nargin > 2) |
49 print_usage (); | 48 print_usage (); |
50 endif | 49 endif |