1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

make funcs static.

* node.c: make them static:
  * rb_node_buffer_new
  * rb_node_buffer_free


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2017-11-16 08:19:46 +00:00
parent 0de6da0ee5
commit 8798822564

6
node.c
View file

@ -1087,8 +1087,8 @@ struct node_buffer_struct {
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()
return nb;
}
void
static void
rb_node_buffer_free(node_buffer_t *nb)
{
node_buffer_elem_t *nbe = nb->head;