renamed moo_getrbtstyle() to moo_get_rbt_style()

This commit is contained in:
hyunghwan.chung 2019-11-18 14:11:14 +00:00
parent 1dd9595c89
commit 25e711fc02
3 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@
* int i; * int i;
* *
* s1 = moo_rbt_open (MOO_MMGR_GETDFL(), 0, 1, 1); // error handling skipped * s1 = moo_rbt_open (MOO_MMGR_GETDFL(), 0, 1, 1); // error handling skipped
* moo_rbt_setstyle (s1, moo_getrbtstyle(MOO_RBT_STYLE_INLINE_COPIERS)); * moo_rbt_setstyle (s1, moo_get_rbt_style(MOO_RBT_STYLE_INLINE_COPIERS));
* *
* for (i = 0; i < 20; i++) * for (i = 0; i < 20; i++)
* { * {
@ -282,10 +282,10 @@ extern "C" {
#endif #endif
/** /**
* The moo_getrbtstyle() functions returns a predefined callback set for * The moo_get_rbt_style() functions returns a predefined callback set for
* pair manipulation. * pair manipulation.
*/ */
MOO_EXPORT const moo_rbt_style_t* moo_getrbtstyle ( MOO_EXPORT const moo_rbt_style_t* moo_get_rbt_style (
moo_rbt_style_kind_t kind moo_rbt_style_kind_t kind
); );

View File

@ -136,7 +136,7 @@ int moo_init (moo_t* moo, moo_mmgr_t* mmgr, moo_cmgr_t* cmgr, const moo_vmprim_t
if (moo_rbt_init (&moo->modtab, moo, MOO_SIZEOF(moo_ooch_t), 1) <= -1) goto oops; if (moo_rbt_init (&moo->modtab, moo, MOO_SIZEOF(moo_ooch_t), 1) <= -1) goto oops;
modtab_inited = 1; modtab_inited = 1;
moo_rbt_setstyle (&moo->modtab, moo_getrbtstyle(MOO_RBT_STYLE_INLINE_COPIERS)); moo_rbt_setstyle (&moo->modtab, moo_get_rbt_style(MOO_RBT_STYLE_INLINE_COPIERS));
fill_bigint_tables (moo); fill_bigint_tables (moo);

View File

@ -186,7 +186,7 @@ static moo_rbt_style_t style[] =
} }
}; };
const moo_rbt_style_t* moo_getrbtstyle (moo_rbt_style_kind_t kind) const moo_rbt_style_t* moo_get_rbt_style (moo_rbt_style_kind_t kind)
{ {
return &style[kind]; return &style[kind];
} }