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

ruby-changes:41406

From: nobu <ko1@a...>
Date: Sat, 9 Jan 2016 11:03:06 +0900 (JST)
Subject: [ruby-changes:41406] nobu:r53478 (trunk): use stringized macros

nobu	2016-01-09 11:03:22 +0900 (Sat, 09 Jan 2016)

  New Revision: 53478

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53478

  Log:
    use stringized macros
    
    * version.h (RUBY_COPYRIGHT): use stringized macros,
      RUBY_BIRTH_YEAR_STR and RUBY_RELEASE_YEAR_STR.

  Modified files:
    trunk/version.h
Index: version.h
===================================================================
--- version.h	(revision 53477)
+++ version.h	(revision 53478)
@@ -13,6 +13,7 @@ https://github.com/ruby/ruby/blob/trunk/version.h#L13
 #endif
 #define ONLY_ONE_DIGIT(x) TOKEN_PASTE(10,x) < 1000
 #define WITH_ZERO_PADDING(x) TOKEN_PASTE(0,x)
+#define RUBY_BIRTH_YEAR_STR STRINGIZE(RUBY_BIRTH_YEAR)
 #define RUBY_RELEASE_YEAR_STR STRINGIZE(RUBY_RELEASE_YEAR)
 #if ONLY_ONE_DIGIT(RUBY_RELEASE_MONTH)
 #define RUBY_RELEASE_MONTH_STR STRINGIZE(WITH_ZERO_PADDING(RUBY_RELEASE_MONTH))
@@ -67,6 +68,6 @@ https://github.com/ruby/ruby/blob/trunk/version.h#L68
     "["RUBY_PLATFORM"]"
 # define RUBY_COPYRIGHT		    \
     "ruby - Copyright (C) "	    \
-    STRINGIZE(RUBY_BIRTH_YEAR)"-"   \
-    STRINGIZE(RUBY_RELEASE_YEAR)" " \
+    RUBY_BIRTH_YEAR_STR"-"   \
+    RUBY_RELEASE_YEAR_STR" " \
     RUBY_AUTHOR

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

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