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

ruby-changes:10122

From: nobu <ko1@a...>
Date: Mon, 19 Jan 2009 17:28:45 +0900 (JST)
Subject: [ruby-changes:10122] Ruby:r21666 (trunk): * include/ruby/defines.h (RUBY_ALIAS_FUNCTION_TYPE): added.

nobu	2009-01-19 17:28:28 +0900 (Mon, 19 Jan 2009)

  New Revision: 21666

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

  Log:
    * include/ruby/defines.h (RUBY_ALIAS_FUNCTION_TYPE): added.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/include/ruby/defines.h

Index: include/ruby/defines.h
===================================================================
--- include/ruby/defines.h	(revision 21665)
+++ include/ruby/defines.h	(revision 21666)
@@ -266,8 +266,8 @@
 #define RUBY_PLATFORM "unknown-unknown"
 #endif
 
-#ifndef RUBY_ALIAS_FUNCTION2
-#define RUBY_ALIAS_FUNCTION2(type, prot, name, args) \
+#ifndef RUBY_ALIAS_FUNCTION_TYPE
+#define RUBY_ALIAS_FUNCTION_TYPE(type, prot, name, args) \
     type prot {return name args;}
 #endif
 #ifndef RUBY_ALIAS_FUNCTION_VOID
@@ -276,7 +276,7 @@
 #endif
 #ifndef RUBY_ALIAS_FUNCTION
 #define RUBY_ALIAS_FUNCTION(prot, name, args) \
-    RUBY_ALIAS_FUNCTION2(VALUE, prot, name, args)
+    RUBY_ALIAS_FUNCTION_TYPE(VALUE, prot, name, args)
 #endif
 
 #if defined(__cplusplus)
Index: configure.in
===================================================================
--- configure.in	(revision 21665)
+++ configure.in	(revision 21666)
@@ -473,10 +473,10 @@
 		[rb_cv_gcc_function_alias=$a; break])
 	done])
     if test "$rb_cv_gcc_function_alias" != no; then
-	AC_DEFINE_UNQUOTED([RUBY_ALIAS_FUNCTION2(type, prot, name, args)],
+	AC_DEFINE_UNQUOTED([RUBY_ALIAS_FUNCTION_TYPE(type, prot, name, args)],
 			   [type prot __attribute__(($rb_cv_gcc_function_alias(@%:@name)));])
 	AC_DEFINE_UNQUOTED([RUBY_ALIAS_FUNCTION_VOID(prot, name, args)],
-			   [RUBY_ALIAS_FUNCTION2(void, prot, name, args)])
+			   [RUBY_ALIAS_FUNCTION_TYPE(void, prot, name, args)])
     fi
 fi
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21665)
+++ ChangeLog	(revision 21666)
@@ -1,6 +1,6 @@
-Mon Jan 19 17:25:17 2009  Nobuyoshi Nakada  <nobu@r...>
+Mon Jan 19 17:29:34 2009  Nobuyoshi Nakada  <nobu@r...>
 
-	* include/ruby/defines.h (RUBY_ALIAS_FUNCTION2): added.
+	* include/ruby/defines.h (RUBY_ALIAS_FUNCTION_TYPE): added.
 
 Mon Jan 19 17:24:05 2009  Nobuyoshi Nakada  <nobu@r...>
 

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

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