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
This commit is contained in:
parent
082a2716cc
commit
ac93d931fa
@ -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
|
* ext/psych/extconf.rb: mingw32 also needs macros for win32, not
|
||||||
only mswin32.
|
only mswin32.
|
||||||
|
@ -221,7 +221,7 @@ yaml_emitter_write_indent(yaml_emitter_t *emitter);
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
yaml_emitter_write_indicator(yaml_emitter_t *emitter,
|
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);
|
int is_whitespace, int is_indention);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -1784,7 +1784,7 @@ yaml_emitter_write_indent(yaml_emitter_t *emitter)
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
yaml_emitter_write_indicator(yaml_emitter_t *emitter,
|
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)
|
int is_whitespace, int is_indention)
|
||||||
{
|
{
|
||||||
size_t indicator_length;
|
size_t indicator_length;
|
||||||
@ -2178,7 +2178,7 @@ yaml_emitter_write_block_scalar_hints(yaml_emitter_t *emitter,
|
|||||||
yaml_string_t string)
|
yaml_string_t string)
|
||||||
{
|
{
|
||||||
char indent_hint[2];
|
char indent_hint[2];
|
||||||
char *chomp_hint = NULL;
|
const char *chomp_hint = NULL;
|
||||||
|
|
||||||
if (IS_SPACE(string) || IS_BREAK(string))
|
if (IS_SPACE(string) || IS_BREAK(string))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user