Mercurial > hg > octave-lyh
comparison src/lex.ll @ 11431:0d9640d755b1
Improve docstrings for all isXXX functions.
Use 'return true' rather than 'return 1'.
Improve the cross-referencing through seealso links.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Fri, 31 Dec 2010 13:20:44 -0800 |
parents | b2191ebea12f |
children | 21b5284fa78d |
comparison
equal
deleted
inserted
replaced
11430:6374938b3b36 | 11431:0d9640d755b1 |
---|---|
3388 return octave_kw_hash::in_word_set (s.c_str (), s.length ()) != 0; | 3388 return octave_kw_hash::in_word_set (s.c_str (), s.length ()) != 0; |
3389 } | 3389 } |
3390 | 3390 |
3391 DEFUN (iskeyword, args, , | 3391 DEFUN (iskeyword, args, , |
3392 "-*- texinfo -*-\n\ | 3392 "-*- texinfo -*-\n\ |
3393 @deftypefn {Built-in Function} {} iskeyword (@var{name})\n\ | 3393 @deftypefn {Built-in Function} {} iskeyword ()\n\ |
3394 @deftypefnx {Built-in Function} {} iskeyword (@var{name})\n\ | |
3394 Return true if @var{name} is an Octave keyword. If @var{name}\n\ | 3395 Return true if @var{name} is an Octave keyword. If @var{name}\n\ |
3395 is omitted, return a list of keywords.\n\ | 3396 is omitted, return a list of keywords.\n\ |
3397 @seealso{isvarname, exist}\n\ | |
3396 @end deftypefn") | 3398 @end deftypefn") |
3397 { | 3399 { |
3398 octave_value retval; | 3400 octave_value retval; |
3399 | 3401 |
3400 int argc = args.length () + 1; | 3402 int argc = args.length () + 1; |