ruby-changes:36811
From: nobu <ko1@a...>
Date: Fri, 19 Dec 2014 20:00:44 +0900 (JST)
Subject: [ruby-changes:36811] nobu:r48892 (trunk): ruby.h: get rid of C++ warnings
nobu 2014-12-19 20:00:22 +0900 (Fri, 19 Dec 2014) New Revision: 48892 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48892 Log: ruby.h: get rid of C++ warnings * include/ruby/ruby.h (PRIsVALUE): put a space after string literals not to be confused with C++11 string literal suffix. https://github.com/ruby/ruby/commit/a9f3eb7#commitcomment-9040169 Modified files: trunk/ChangeLog trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 48891) +++ include/ruby/ruby.h (revision 48892) @@ -130,14 +130,14 @@ typedef char ruby_check_sizeof_voidp[SIZ https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L130 #define PRIuVALUE PRIuPTR #define PRIxVALUE PRIxPTR #define PRIXVALUE PRIXPTR -#define PRIsVALUE PRIiPTR""RUBY_PRI_VALUE_MARK +#define PRIsVALUE PRIiPTR"" RUBY_PRI_VALUE_MARK #else #define PRIdVALUE PRI_VALUE_PREFIX"d" #define PRIoVALUE PRI_VALUE_PREFIX"o" #define PRIuVALUE PRI_VALUE_PREFIX"u" #define PRIxVALUE PRI_VALUE_PREFIX"x" #define PRIXVALUE PRI_VALUE_PREFIX"X" -#define PRIsVALUE PRI_VALUE_PREFIX"i"RUBY_PRI_VALUE_MARK +#define PRIsVALUE PRI_VALUE_PREFIX"i" RUBY_PRI_VALUE_MARK #endif #ifndef PRI_VALUE_PREFIX # define PRI_VALUE_PREFIX "" Index: ChangeLog =================================================================== --- ChangeLog (revision 48891) +++ ChangeLog (revision 48892) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Dec 19 20:00:19 2014 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/ruby.h (PRIsVALUE): put a space after string + literals not to be confused with C++11 string literal suffix. + https://github.com/ruby/ruby/commit/a9f3eb7#commitcomment-9040169 + Fri Dec 19 15:36:02 2014 Simon Genier <simon.genier@s...> * hash.c (hash_equal): prefer true than the result of implicit -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/