[前][次][番号順一覧][スレッド一覧]

ruby-changes:33454

From: knu <ko1@a...>
Date: Tue, 8 Apr 2014 22:56:02 +0900 (JST)
Subject: [ruby-changes:33454] knu:r45533 (trunk): * lib/mkmf.rb (MakeMakefile#dir_config): Improve documentation.

knu	2014-04-08 22:55:57 +0900 (Tue, 08 Apr 2014)

  New Revision: 45533

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45533

  Log:
    * lib/mkmf.rb (MakeMakefile#dir_config): Improve documentation.

  Modified files:
    trunk/ChangeLog
    trunk/lib/mkmf.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45532)
+++ ChangeLog	(revision 45533)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Apr  8 22:55:32 2014  Akinori MUSHA  <knu@i...>
+
+	* lib/mkmf.rb (MakeMakefile#dir_config): Improve documentation.
+
 Tue Apr  8 22:31:44 2014  Koichi Sasada  <ko1@a...>
 
 	* gc.c: rename `RGENGC_THREEGEN' to `RGENGC_AGE2_PROMOTION'.
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 45532)
+++ lib/mkmf.rb	(revision 45533)
@@ -1677,13 +1677,28 @@ SRC https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1677
     $extconf_h = header
   end
 
-  # Sets a +target+ name that the user can then use to configure various
-  # "with" options with on the command line by using that name.  For example,
-  # if the target is set to "foo", then the user could use the
-  # <code>--with-foo-dir</code> command line option.
+  # call-seq:
+  #   dir_config(target)
+  #   dir_config(target, prefix)
+  #   dir_config(target, idefault, ldefault)
   #
-  # You may pass along additional "include" or "lib" defaults via the
-  # +idefault+ and +ldefault+ parameters, respectively.
+  # Sets a +target+ name that the user can then use to configure
+  # various "with" options with on the command line by using that
+  # name.  For example, if the target is set to "foo", then the user
+  # could use the <code>--with-foo-dir=prefix</code>,
+  # <code>--with-foo-include=dir</code> and
+  # <code>--with-foo-lib=dir</code> command line options to tell where
+  # to search for header/library files.
+  #
+  # You may pass along additional parameters to specify default
+  # values.  If one is given it is taken as default +prefix+, and if
+  # two are given they are taken as "include" and "lib" defaults in
+  # that order.
+  #
+  # In any case, the return value will be an array of determined
+  # "include" and "lib" directories, either of which can be nil if no
+  # corresponding command line option is given when no default value
+  # is specified.
   #
   # Note that dir_config only adds to the list of places to search for
   # libraries and include files.  It does not link the libraries into your

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]