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:
parent
9c1a7bf74a
commit
4520a3408a
2 changed files with 7 additions and 3 deletions
|
@ -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.
|
* ext/openssl/ruby_missing.h: parenthesize macro arguments.
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,9 @@ static ID id_end_mapping;
|
||||||
|
|
||||||
#define PSYCH_TRANSCODE(_str, _yaml_enc, _internal_enc) \
|
#define PSYCH_TRANSCODE(_str, _yaml_enc, _internal_enc) \
|
||||||
do { \
|
do { \
|
||||||
rb_enc_associate_index(_str, _yaml_enc); \
|
rb_enc_associate_index((_str), (_yaml_enc)); \
|
||||||
if(_internal_enc) \
|
if(_internal_enc) \
|
||||||
_str = rb_str_export_to_enc(_str, _internal_enc); \
|
(_str) = rb_str_export_to_enc((_str), (_internal_enc)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
static int io_reader(void * data, unsigned char *buf, size_t size, size_t *read)
|
static int io_reader(void * data, unsigned char *buf, size_t size, size_t *read)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue