Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move internal ST functions to internal/st.h
st_replace and st_init_existing_table_with_size are functions used internally in Ruby and should not be publicly visible.
- Loading branch information
1 parent
f4d2fe5
commit 824ff48
Showing
6 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef INTERNAL_ST_H | ||
#define INTERNAL_ST_H | ||
|
||
#include "include/ruby/st.h" | ||
|
||
st_table *rb_st_replace(st_table *new_tab, st_table *old_tab); | ||
#define st_replace rb_st_replace | ||
st_table *rb_st_init_existing_table_with_size(st_table *tab, const struct st_hash_type *type, st_index_t size); | ||
#define st_init_existing_table_with_size rb_st_init_existing_table_with_size | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters