Skip to content
  • Yusuke Endoh's avatar
    5f35b8ca
    st.c: Use rb_st_* prefix instead of st_* (#2479) · 5f35b8ca
    Yusuke Endoh authored
    The original st.c was public domain hash table implementation, but
    Ruby's st.c is highly modified, and its data structure is not
    compatiblie with the original one.
    
    Therefore, when creating an extension library to wrap C code that uses
    the original st.c, the symbols conflict, which leads to segfault.
    
    This changes the prefix `st_*` of st.c functions to `rb_st_*` for
    reflecting that they are specific to Ruby's, and avoid symbol conflicts.
    5f35b8ca
    st.c: Use rb_st_* prefix instead of st_* (#2479)
    Yusuke Endoh authored
    The original st.c was public domain hash table implementation, but
    Ruby's st.c is highly modified, and its data structure is not
    compatiblie with the original one.
    
    Therefore, when creating an extension library to wrap C code that uses
    the original st.c, the symbols conflict, which leads to segfault.
    
    This changes the prefix `st_*` of st.c functions to `rb_st_*` for
    reflecting that they are specific to Ruby's, and avoid symbol conflicts.
Loading