library/src/datastructures/BP-LinkedList.cc
// links an existing chunk into a tailqueue
links an existing chunk into a tailqueue
links an existing chunk into a tailqueue
BP_ERROR_T tq_link(P_BP_LINKL head, void * addr, size_t size, BPLN_PARMS)
{
	if(!head)
		return ERR_SUCCESS;
	if(!addr || !size)
		return ERR_FAILURE;
	if(BP_AddDataToLinkLTail(head, addr, size , BP_MEMPROF_ALLOC_TYPE_MALLOC, file_name, line_number, func) != ERR_SUCCESS)
	{
		return ERR_FAILURE;
	}
	return ERR_SUCCESS;
}
BP_ERROR_T tq_link ( P_BP_LINKL head , void * addr , size_t size , BPLN_PARMS ) { if ( ! head ) return ERR_SUCCESS ; if ( ! addr || ! size ) return ERR_FAILURE ; if ( BP_AddDataToLinkLTail ( head , addr , size , BP_MEMPROF_ALLOC_TYPE_MALLOC , file_name , line_number , func ) != ERR_SUCCESS ) { return ERR_FAILURE ; } return ERR_SUCCESS ; }
links an existing chunk into a tailqueue
links an existing chunk into a tailqueue
// ensure we have a head entry to work with // attempt to add the chunk and return directly // return indicating success