summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-11 22:56:13 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-11 22:56:13 +0000
commit615e7987ca619a9d8df01844b61d95796b95fd19 (patch)
tree75467706dc185b58087aafb9f029e5c2e9a31ba8 /lib/mkmf.rb
parent83d7aca7f6c02a92d49be1490e72b50fe9643598 (diff)
* object.c (rb_obj_equal): Add documentation. Patch by Vincent Batts.
[Ruby 1.9 - Bug #4664] * lib/rexml: ditto * lib/mkmf.rb: ditto * ext/socket/lib/socket.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 260875f732..2d1fbf0ac3 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) << <<RULES << CLEANINGS
CLEANFILES = #{$cleanfiles.join(' ')}
@@ -1742,6 +1752,11 @@ all install static install-so install-rb: Makefile
RULES
end
+# Processes the data contents of the "depend" file.
+# Each line of this file is expected to be a file name.
+#
+# Returns the output of findings, in Makefile format.
+#
def depend_rules(depend)
suffixes = []
depout = []