src/stdlib/table.c
/*=================================================
 * rbdestroy_value -- Destroy value stored in rbtree
 *  (for rbtree module, which does not manage key or value memory)
 *===============================================*/
- Destroy value stored in rbtree
(for rbtree module, which does not manage key or value memory)
- Destroy value stored in rbtree ( for rbtree module which does not manage key or value memory )
static void
rbdestroy_value (TABLE tab, RBVALUE info)
{
	if (tab->destroyfunc) {
		(*tab->destroyfunc)(info);
		return;
	}
	switch(tab->valtype) {
	case TB_INT:
	case TB_STR:
	case TB_HPTR:
		table_element_destructor(info);
		break;
	case TB_OBJ:
		table_element_obj_destructor(info);
	case TB_NULL:
	case TB_VPTR:
	        ;
	}
}
static void rbdestroy_value ( TABLE tab , RBVALUE info ) { if ( tab -> destroyfunc ) { ( * tab -> destroyfunc ) ( info ) ; return ; } switch ( tab -> valtype ) { case TB_INT : case TB_STR : case TB_HPTR : table_element_destructor ( info ) ; break ; case TB_OBJ : table_element_obj_destructor ( info ) ; case TB_NULL : case TB_VPTR : ; } }
rbdestroy_value -- Destroy value stored in rbtree
  (for rbtree module, which does not manage key or value memory)
rbdestroy_value -- Destroy value stored in rbtree ( for rbtree module which does not manage key or value memory )