diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-05 07:47:51 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-05 07:47:51 +0000 |
commit | a6794c4b01ceb96d3d36f8854309e2e3b878f7e3 (patch) | |
tree | a26585fd8ebbee87634e6ea10b819a8df0e7aca3 /node.c | |
parent | 0268c85e85602f346ebfbb363702b14e13899840 (diff) | |
download | ruby-a6794c4b01ceb96d3d36f8854309e2e3b878f7e3.tar.gz |
node.c: constify NODE* arguments in node.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -132,11 +132,11 @@ dump_option(VALUE buf, VALUE indent, VALUE opt) rb_hash_foreach(opt, add_option_i, (VALUE)&arg); } -static void dump_node(VALUE, VALUE, int, NODE *); +static void dump_node(VALUE, VALUE, int, const NODE *); static const char default_indent[] = "| "; static void -dump_array(VALUE buf, VALUE indent, int comment, NODE *node) +dump_array(VALUE buf, VALUE indent, int comment, const NODE *node) { int field_flag; const char *next_indent = default_indent; @@ -151,7 +151,7 @@ dump_array(VALUE buf, VALUE indent, int comment, NODE *node) } static void -dump_node(VALUE buf, VALUE indent, int comment, NODE *node) +dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) { int field_flag; int i; @@ -1056,7 +1056,7 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node) } VALUE -rb_parser_dump_tree(NODE *node, int comment) +rb_parser_dump_tree(const NODE *node, int comment) { VALUE buf = rb_str_new_cstr( "###########################################################\n" |