diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-28 12:23:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-28 12:23:20 +0000 |
commit | ac93d931fa8c089a4fa6cbafb5727829161ea22e (patch) | |
tree | cf6d67e577f62b91e48b20235c1c52eec5bf1da5 | |
parent | 082a2716cc0e95f37ac9b64c26f9d55d2b0cb499 (diff) |
emitter.c: constify
* ext/psych/yaml/emitter.c (yaml_emitter_write_indicator): constify.
* ext/psych/yaml/emitter.c (yaml_emitter_write_block_scalar_hints):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ext/psych/yaml/emitter.c | 6 |
2 files changed, 9 insertions, 4 deletions
@@ -1,4 +1,9 @@ -Wed Nov 28 21:22:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> +Wed Nov 28 21:23:18 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * ext/psych/yaml/emitter.c (yaml_emitter_write_indicator): constify. + + * ext/psych/yaml/emitter.c (yaml_emitter_write_block_scalar_hints): + ditto. * ext/psych/extconf.rb: mingw32 also needs macros for win32, not only mswin32. diff --git a/ext/psych/yaml/emitter.c b/ext/psych/yaml/emitter.c index c4b56a26bb..f41a8fada6 100644 --- a/ext/psych/yaml/emitter.c +++ b/ext/psych/yaml/emitter.c @@ -221,7 +221,7 @@ yaml_emitter_write_indent(yaml_emitter_t *emitter); 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 *emitter) 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(yaml_emitter_t *emitter, yaml_string_t string) { char indent_hint[2]; - char *chomp_hint = NULL; + const char *chomp_hint = NULL; if (IS_SPACE(string) || IS_BREAK(string)) { |