diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb index d7bd760..afe7e37 100644 --- a/ext/socket/lib/socket.rb +++ b/ext/socket/lib/socket.rb @@ -29,6 +29,12 @@ class Addrinfo end end + # creates a new +Socket+ connected to the address of local_addrinfo. + # + # If no arguments are given, the address of the socket is not bound. + # + # If +block+ is given, calls the +socket+ for each member of the block. + # def connect_internal(local_addrinfo) sock = Socket.new(self.pfamily, self.socktype, self.protocol) begin diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 260875f..2d1fbf0 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1013,6 +1013,10 @@ SRC end end +# Returns whether or not the static type +type+ is defined. +# +# See also +have_type+ +# def try_type(type, headers = nil, opt = "", &b) if try_compile(<<"SRC", opt, &b) #{cpp_include(headers)} @@ -1066,6 +1070,10 @@ def find_type(type, opt, *headers, &b) end end +# Returns whether or not the Constant +const+ is defined. +# +# See also +have_const+ +# def try_const(const, headers = nil, opt = "", &b) const, type = *const if try_compile(<<"SRC", opt, &b) @@ -1730,6 +1738,8 @@ preload = #{defined?($preload) && $preload ? $preload.join(' ') : ''} end # :startdoc: +# creates a stub Makefile. +# def dummy_makefile(srcdir) configuration(srcdir) << <Fixnum hash value for this object. This function must have the + * property that a.eql?(b) implies a.hash == b.hash. The hash value is used by + * class Hash. Any hash value that exceeds the capacity of a Fixnum will be + * truncated before being used. + * + * "waffle" #=> "waffle" + * "waffle".hash #=> -910576647 + */ VALUE rb_obj_hash(VALUE obj) { @@ -1774,10 +1783,10 @@ rb_mod_const_defined(int argc, VALUE *argv, VALUE mod) return RTEST(recur) ? rb_const_defined(mod, id) : rb_const_defined_at(mod, id); } -VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj); -VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj); -VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj); -VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj); +VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */ +VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */ +VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */ +VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */ /* * call-seq: