ruby-changes:48690
From: ko1 <ko1@a...>
Date: Thu, 16 Nov 2017 17:19:51 +0900 (JST)
Subject: [ruby-changes:48690] ko1:r60806 (trunk): make funcs static.
ko1 2017-11-16 17:19:46 +0900 (Thu, 16 Nov 2017) New Revision: 60806 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60806 Log: make funcs static. * node.c: make them static: * rb_node_buffer_new * rb_node_buffer_free Modified files: trunk/node.c Index: node.c =================================================================== --- node.c (revision 60805) +++ node.c (revision 60806) @@ -1087,8 +1087,8 @@ struct node_buffer_struct { https://github.com/ruby/ruby/blob/trunk/node.c#L1087 node_buffer_elem_t body; /* this should be a last, because body has flexible array */ }; -node_buffer_t * -rb_node_buffer_new() +static node_buffer_t * +rb_node_buffer_new(void) { node_buffer_t *nb = xmalloc(offsetof(node_buffer_t, body) + offsetof(node_buffer_elem_t, buf) + 16 * sizeof(NODE)); nb->idx = 0; @@ -1098,7 +1098,7 @@ rb_node_buffer_new() https://github.com/ruby/ruby/blob/trunk/node.c#L1098 return nb; } -void +static void rb_node_buffer_free(node_buffer_t *nb) { node_buffer_elem_t *nbe = nb->head; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/