1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/psych/parser.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-03-22 11:10:34 +00:00
parent 9c1a7bf74a
commit 4520a3408a
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,8 @@
Sun Mar 20 12:43:12 2011 Tanaka Akira <akr@fsij.org>
Tue Mar 22 20:10:04 2011 Tanaka Akira <akr@fsij.org>
* ext/psych/parser.c: parenthesize macro arguments.
Tue Mar 22 20:10:01 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ruby_missing.h: parenthesize macro arguments.

View file

@ -19,9 +19,9 @@ static ID id_end_mapping;
#define PSYCH_TRANSCODE(_str, _yaml_enc, _internal_enc) \
do { \
rb_enc_associate_index(_str, _yaml_enc); \
rb_enc_associate_index((_str), (_yaml_enc)); \
if(_internal_enc) \
_str = rb_str_export_to_enc(_str, _internal_enc); \
(_str) = rb_str_export_to_enc((_str), (_internal_enc)); \
} while (0)
static int io_reader(void * data, unsigned char *buf, size_t size, size_t *read)