Mercurial > hg > octave-lyh
comparison src/DLD-FUNCTIONS/lookup.cc @ 11553:01f703952eff
Improve docstrings for functions in DLD-FUNCTIONS directory.
Use same variable names in error() strings and in documentation.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 16 Jan 2011 22:13:23 -0800 |
parents | fd0a3ac60b0e |
children | 05b5bcdb09c8 |
comparison
equal
deleted
inserted
replaced
11552:6b6e9051ecb8 | 11553:01f703952eff |
---|---|
267 } | 267 } |
268 | 268 |
269 if ((match_idx || match_bool) && (left_inf || right_inf)) | 269 if ((match_idx || match_bool) && (left_inf || right_inf)) |
270 error ("lookup: m, b cannot be specified with l or r"); | 270 error ("lookup: m, b cannot be specified with l or r"); |
271 else if (match_idx && match_bool) | 271 else if (match_idx && match_bool) |
272 error ("lookup: only one of m, b can be specified"); | 272 error ("lookup: only one of m or b can be specified"); |
273 else if (str_case && (left_inf || right_inf)) | 273 else if (str_case && (left_inf || right_inf)) |
274 error ("lookup: l,r not recognized for string lookups"); | 274 error ("lookup: l, r are not recognized for string lookups"); |
275 | 275 |
276 if (error_state) | 276 if (error_state) |
277 return retval; | 277 return retval; |
278 | 278 |
279 if (num_case) | 279 if (num_case) |