mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
a9f3eb7 (commitcomment-9040169)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
62d43632ba
commit
0618ea7590
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Fri Dec 19 20:00:19 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@shopify.com>
|
Fri Dec 19 15:36:02 2014 Simon Genier <simon.genier@shopify.com>
|
||||||
|
|
||||||
* hash.c (hash_equal): prefer true than the result of implicit
|
* hash.c (hash_equal): prefer true than the result of implicit
|
||||||
|
|
|
@ -130,14 +130,14 @@ typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1];
|
||||||
#define PRIuVALUE PRIuPTR
|
#define PRIuVALUE PRIuPTR
|
||||||
#define PRIxVALUE PRIxPTR
|
#define PRIxVALUE PRIxPTR
|
||||||
#define PRIXVALUE PRIXPTR
|
#define PRIXVALUE PRIXPTR
|
||||||
#define PRIsVALUE PRIiPTR""RUBY_PRI_VALUE_MARK
|
#define PRIsVALUE PRIiPTR"" RUBY_PRI_VALUE_MARK
|
||||||
#else
|
#else
|
||||||
#define PRIdVALUE PRI_VALUE_PREFIX"d"
|
#define PRIdVALUE PRI_VALUE_PREFIX"d"
|
||||||
#define PRIoVALUE PRI_VALUE_PREFIX"o"
|
#define PRIoVALUE PRI_VALUE_PREFIX"o"
|
||||||
#define PRIuVALUE PRI_VALUE_PREFIX"u"
|
#define PRIuVALUE PRI_VALUE_PREFIX"u"
|
||||||
#define PRIxVALUE PRI_VALUE_PREFIX"x"
|
#define PRIxVALUE PRI_VALUE_PREFIX"x"
|
||||||
#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
|
#endif
|
||||||
#ifndef PRI_VALUE_PREFIX
|
#ifndef PRI_VALUE_PREFIX
|
||||||
# define PRI_VALUE_PREFIX ""
|
# define PRI_VALUE_PREFIX ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue