Mercurial > hg > octave-lyh
diff scripts/miscellaneous/compare_versions.m @ 11472:1740012184f9
Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 09 Jan 2011 21:33:04 -0800 |
parents | 39ae406df598 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/miscellaneous/compare_versions.m +++ b/scripts/miscellaneous/compare_versions.m @@ -89,9 +89,9 @@ ## check and make sure that the operator is valid if (! ischar (operator)) - error ("compare_versions: operator must be a character string"); + error ("compare_versions: OPERATOR must be a character string"); elseif (numel (operator) > 2) - error("compare_versions: operator cannot be more than 2 characters long"); + error("compare_versions: OPERATOR cannot be more than 2 characters long"); endif ## trim off any character data that is not part of a normal version @@ -166,9 +166,9 @@ ## Make sure that we don't have conflicting operators. if (gt_op && lt_op) - error ("compare_versions: operator cannot contain both greater and less than symbols"); + error ("compare_versions: OPERATOR cannot contain both greater and less than symbols"); elseif ((gt_op || lt_op) && not_op) - error ("compare_versions: operator cannot contain not and greater than or less than symbols"); + error ("compare_versions: OPERATOR cannot contain not and greater than or less than symbols"); endif ## Compare the versions (making sure that they're the same shape)