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

ruby-changes:27921

From: akr <ko1@a...>
Date: Thu, 28 Mar 2013 07:13:16 +0900 (JST)
Subject: [ruby-changes:27921] akr:r39973 (trunk): * include/ruby/intern.h: Delete redundant inclusions caused by

akr	2013-03-28 07:13:06 +0900 (Thu, 28 Mar 2013)

  New Revision: 39973

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

  Log:
    * include/ruby/intern.h: Delete redundant inclusions caused by
      AC_INCLUDES_DEFAULT in defines.h.
    
    * include/ruby/defines.h: Ditto.
    
    * include/ruby/ruby.h: Ditto.
    
    * include/ruby/st.h: Ditto.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/defines.h
    trunk/include/ruby/intern.h
    trunk/include/ruby/ruby.h
    trunk/include/ruby/st.h

Index: include/ruby/intern.h
===================================================================
--- include/ruby/intern.h	(revision 39972)
+++ include/ruby/intern.h	(revision 39973)
@@ -32,10 +32,6 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L32
 # include <varargs.h>
 #endif
 
-#if defined(HAVE_SYS_TYPES_H)
-#include <sys/types.h>
-#endif
-
 #include "ruby/st.h"
 
 #if defined __GNUC__ && __GNUC__ >= 4
Index: include/ruby/defines.h
===================================================================
--- include/ruby/defines.h	(revision 39972)
+++ include/ruby/defines.h	(revision 39973)
@@ -59,10 +59,6 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/defines.h#L59
 
 #define RUBY
 
-# include <stddef.h>
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
 #ifdef __cplusplus
 # ifndef  HAVE_PROTOTYPES
 #  define HAVE_PROTOTYPES 1
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 39972)
+++ include/ruby/ruby.h	(revision 39973)
@@ -26,6 +26,8 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L26
 #include RUBY_EXTCONF_H
 #endif
 
+#include "defines.h"
+
 #define NORETURN_STYLE_NEW 1
 #ifndef NORETURN
 # define NORETURN(x) x
@@ -47,27 +49,11 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L49
 #define PRINTF_ARGS(decl, string_index, first_to_check) decl
 #endif
 
-#ifdef HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
-
 #ifdef HAVE_INTRINSICS_H
 # include <intrinsics.h>
 #endif
 
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-
 #include <stdarg.h>
-#include <stdio.h>
-
-#include "defines.h"
 
 #if defined __GNUC__ && __GNUC__ >= 4
 #pragma GCC visibility push(default)
Index: include/ruby/st.h
===================================================================
--- include/ruby/st.h	(revision 39972)
+++ include/ruby/st.h	(revision 39973)
@@ -14,19 +14,6 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/st.h#L14
 
 #include "ruby/defines.h"
 
-#if   defined STDC_HEADERS
-#include <stddef.h>
-#elif defined HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-
 #if defined __GNUC__ && __GNUC__ >= 4
 #pragma GCC visibility push(default)
 #endif
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39972)
+++ ChangeLog	(revision 39973)
@@ -1,3 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Mar 28 07:05:25 2013  Tanaka Akira  <akr@f...>
+
+	* include/ruby/intern.h: Delete redundant inclusions caused by
+	  AC_INCLUDES_DEFAULT in defines.h.
+
+	* include/ruby/defines.h: Ditto.
+
+	* include/ruby/ruby.h: Ditto.
+
+	* include/ruby/st.h: Ditto.
+
 Thu Mar 28 06:51:31 2013  Tanaka Akira  <akr@f...>
 
 	* include/ruby/defines.h: Fix a compilation error on NetBSD,

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

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