Hi,
here's a patch for rdoc (as shipped with ruby 1.8.1) that allows the
use of whitespace between a function name and the opening parenthesis,
like this:
rb_define_class_under (mFoo, "Bar", rb_cObject);
^
Without the patch, rdoc wouldn't recognize the class definition because
it expects the opening parenthesis to appear just after the function
name.
I know omitting the space before the parenthesis is "ruby style", but
IMHO it makes sense to allow it for C code.
Please comment.
--
Regards,
Tilman
rdoc_allow_whitespace.diff
Description: Text document
|