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:
parent
0de6da0ee5
commit
8798822564
1 changed files with 3 additions and 3 deletions
6
node.c
6
node.c
|
@ -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_elem_t body; /* this should be a last, because body has flexible array */
|
||||||
};
|
};
|
||||||
|
|
||||||
node_buffer_t *
|
static node_buffer_t *
|
||||||
rb_node_buffer_new()
|
rb_node_buffer_new(void)
|
||||||
{
|
{
|
||||||
node_buffer_t *nb = xmalloc(offsetof(node_buffer_t, body) + offsetof(node_buffer_elem_t, buf) + 16 * sizeof(NODE));
|
node_buffer_t *nb = xmalloc(offsetof(node_buffer_t, body) + offsetof(node_buffer_elem_t, buf) + 16 * sizeof(NODE));
|
||||||
nb->idx = 0;
|
nb->idx = 0;
|
||||||
|
@ -1098,7 +1098,7 @@ rb_node_buffer_new()
|
||||||
return nb;
|
return nb;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
rb_node_buffer_free(node_buffer_t *nb)
|
rb_node_buffer_free(node_buffer_t *nb)
|
||||||
{
|
{
|
||||||
node_buffer_elem_t *nbe = nb->head;
|
node_buffer_elem_t *nbe = nb->head;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue