src/stdlib/table.c
/*=============================
 * create_table_impl -- Create table
 * All tables are created in this function
 * returns addref'd table
 *===========================*/
- Create table
All tables are created in this function
returns addref'd table
- Create table All tables are created in this function returns addref ' d table
static TABLE
create_table_impl (enum TB_VALTYPE valtype, DELFUNC delfunc)
{
	TABLE tab = (TABLE) stdalloc(sizeof(*tab));
	tab->vtable = &vtable_for_table;
	tab->refcnt = 1;
	tab->valtype = valtype;
	if (getlloptstr("rbtree", 0))
		tab->rbtree = RbTreeCreate(tab, rbcompare, rbdestroy);
	else
		tab->hashtab = create_hashtab();
	tab->destroyfunc = delfunc;
	return tab;
}
static TABLE create_table_impl ( enum TB_VALTYPE valtype , DELFUNC delfunc ) { TABLE tab = ( TABLE ) stdalloc ( sizeof ( * tab ) ) ; tab -> vtable = & vtable_for_table ; tab -> refcnt = 1 ; tab -> valtype = valtype ; if ( getlloptstr ( " " , 0 ) ) tab -> rbtree = RbTreeCreate ( tab , rbcompare , rbdestroy ) ; else tab -> hashtab = create_hashtab ( ) ; tab -> destroyfunc = delfunc ; return tab ; }
create_table_impl -- Create table
 All tables are created in this function
 returns addref'd table
create_table_impl -- Create table All tables are created in this function returns addref ' d table