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

ruby-changes:23637

From: kosaki <ko1@a...>
Date: Fri, 18 May 2012 16:02:29 +0900 (JST)
Subject: [ruby-changes:23637] kosaki:r35688 (trunk): * ext/readline/extconf.rb: Use an exception instead of bare exit.

kosaki	2012-05-18 16:02:10 +0900 (Fri, 18 May 2012)

  New Revision: 35688

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

  Log:
    * ext/readline/extconf.rb: Use an exception instead of bare exit.

  Modified files:
    trunk/ChangeLog
    trunk/ext/readline/extconf.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35687)
+++ ChangeLog	(revision 35688)
@@ -1,3 +1,7 @@
+Fri May 18 15:49:35 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* ext/readline/extconf.rb: Use an exception instead of bare exit.
+
 Fri May 18 15:38:11 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* ext/ripper/extconf.rb: Use an exception instead of bare
Index: ext/readline/extconf.rb
===================================================================
--- ext/readline/extconf.rb	(revision 35687)
+++ ext/readline/extconf.rb	(revision 35688)
@@ -40,14 +40,14 @@
   unless (have_readline_header("editline/readline.h") ||
           have_readline_header("readline/readline.h")) &&
           have_library("edit", "readline")
-    exit
+    raise "libedit not found"
   end
 when false
   # --disable-libedit
   unless ((have_readline_header("readline/readline.h") &&
            have_readline_header("readline/history.h")) &&
            have_library("readline", "readline"))
-    exit
+    raise "readline not found"
   end
 else
   # does not specify
@@ -57,7 +57,7 @@
             have_library("edit", "readline"))) ||
             (have_readline_header("editline/readline.h") &&
              have_library("edit", "readline"))
-    exit
+    raise "readline nor libedit not found"
   end
 end
 

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

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