ruby-changes:32736
From: nobu <ko1@a...>
Date: Wed, 5 Feb 2014 10:17:30 +0900 (JST)
Subject: [ruby-changes:32736] nobu:r44815 (trunk): yaml/emitter.c: constify, r37936
nobu 2014-02-05 10:17:26 +0900 (Wed, 05 Feb 2014) New Revision: 44815 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44815 Log: yaml/emitter.c: constify, r37936 * ext/psych/yaml/emitter.c (yaml_emitter_write_indicator): constify. * ext/psych/yaml/emitter.c (yaml_emitter_write_block_scalar_hints): ditto. Modified files: trunk/ext/psych/yaml/emitter.c Index: ext/psych/yaml/emitter.c =================================================================== --- ext/psych/yaml/emitter.c (revision 44814) +++ ext/psych/yaml/emitter.c (revision 44815) @@ -221,7 +221,7 @@ yaml_emitter_write_indent(yaml_emitter_t https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/emitter.c#L221 static int yaml_emitter_write_indicator(yaml_emitter_t *emitter, - char *indicator, int need_whitespace, + const char *indicator, int need_whitespace, int is_whitespace, int is_indention); static int @@ -1784,7 +1784,7 @@ yaml_emitter_write_indent(yaml_emitter_t https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/emitter.c#L1784 static int yaml_emitter_write_indicator(yaml_emitter_t *emitter, - char *indicator, int need_whitespace, + const char *indicator, int need_whitespace, int is_whitespace, int is_indention) { size_t indicator_length; @@ -2178,7 +2178,7 @@ yaml_emitter_write_block_scalar_hints(ya https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/emitter.c#L2178 yaml_string_t string) { char indent_hint[2]; - char *chomp_hint = NULL; + const char *chomp_hint = NULL; if (IS_SPACE(string) || IS_BREAK(string)) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/