コード例 #1
0
ファイル: c_vector.c プロジェクト: sqlparser/isf_c_client
void __c_vector(c_pvector thiz, COMPARER pcmp)
{
	thiz->_cmp = pcmp;
	thiz->_l = __c_malloc(sizeof(_c_vector_impl));
	((_c_vector_impl *)thiz->_l)->_start = NULL;
	((_c_vector_impl *)thiz->_l)->_finish = NULL;
	((_c_vector_impl *)thiz->_l)->_end_of_storage = NULL;
}
コード例 #2
0
ファイル: c_vector.c プロジェクト: sqlparser/isf_c_client
static pnode_t _A_allocate(c_pvector thiz, size_t n)
{
	return (pnode_t)__c_malloc(n * sizeof(node_t));
}
コード例 #3
0
ファイル: c_queue.c プロジェクト: LiZhaoxing/hostapd
void __c_queue(c_pqueue thiz, COMPARER pcmp)
{
	thiz->_l = __c_malloc(sizeof(c_list));
	__c_list((c_plist)thiz->_l, pcmp);
}