ruby-changes:10812
From: akr <ko1@a...>
Date: Wed, 18 Feb 2009 01:29:49 +0900 (JST)
Subject: [ruby-changes:10812] Ruby:r22380 (trunk): add comments for rdoc.
akr 2009-02-18 01:29:43 +0900 (Wed, 18 Feb 2009) New Revision: 22380 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22380 Log: add comments for rdoc. Modified files: trunk/ext/socket/ancdata.c trunk/ext/socket/option.c Index: ext/socket/option.c =================================================================== --- ext/socket/option.c (revision 22379) +++ ext/socket/option.c (revision 22380) @@ -562,6 +562,9 @@ void Init_sockopt(void) { + /* for rdoc */ + /* rb_cSocket = rb_define_class("Socket", rb_cBasicSocket); */ + rb_cSockOpt = rb_define_class_under(rb_cSocket, "Option", rb_cObject); rb_define_method(rb_cSockOpt, "initialize", sockopt_initialize, 4); rb_define_method(rb_cSockOpt, "family", sockopt_family_m, 0); Index: ext/socket/ancdata.c =================================================================== --- ext/socket/ancdata.c (revision 22379) +++ ext/socket/ancdata.c (revision 22380) @@ -1342,6 +1342,10 @@ void Init_ancdata(void) { + /* for rdoc */ + /* rb_cBasicSocket = rb_define_class("BasicSocket", rb_cIO); */ + /* rb_cSocket = rb_define_class("Socket", rb_cBasicSocket); */ + rb_define_method(rb_cBasicSocket, "sendmsg", bsock_sendmsg, -1); rb_define_method(rb_cBasicSocket, "sendmsg_nonblock", bsock_sendmsg_nonblock, -1); rb_define_method(rb_cBasicSocket, "recvmsg", bsock_recvmsg, -1); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/