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

ruby-changes:31813

From: nobu <ko1@a...>
Date: Thu, 28 Nov 2013 16:34:23 +0900 (JST)
Subject: [ruby-changes:31813] nobu:r43892 (trunk): version.c: EXIT_SUCCESS

nobu	2013-11-28 16:34:18 +0900 (Thu, 28 Nov 2013)

  New Revision: 43892

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

  Log:
    version.c: EXIT_SUCCESS
    
    * version.c (ruby_show_copyright): use EXIT_SUCCESS instead of magic
      number 0.

  Modified files:
    trunk/version.c
Index: version.c
===================================================================
--- version.c	(revision 43891)
+++ version.c	(revision 43892)
@@ -13,6 +13,10 @@ https://github.com/ruby/ruby/blob/trunk/version.c#L13
 #include "version.h"
 #include <stdio.h>
 
+#ifndef EXIT_SUCCESS
+#define EXIT_SUCCESS 0
+#endif
+
 #define PRINT(type) puts(ruby_##type)
 #define MKSTR(type) rb_obj_freeze(rb_usascii_str_new(ruby_##type, sizeof(ruby_##type)-1))
 
@@ -84,5 +88,5 @@ void https://github.com/ruby/ruby/blob/trunk/version.c#L88
 ruby_show_copyright(void)
 {
     PRINT(copyright);
-    exit(0);
+    exit(EXIT_SUCCESS);
 }

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

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