library/src/filesystem/BP-Filesystem.cc
// creates a new file list:
creates a new file list.
creates a new file list .
P_BP_FILE_LIST BP_NewFileList
(
		P_BP_FILE_LIST first,
		P_BP_FILE_LIST next,
		P_BP_FILE_LIST prev
)
{
	P_BP_FILE_LIST outList = (P_BP_FILE_LIST) bpcalloc(sizeof(BP_FILE_LIST), 1);
	if(!outList)
		return NULL;
	outList->first = first;
	if(!outList->first)
		outList->first = outList;
	outList->next = next;
	outList->prev = prev;
	return outList;
}
P_BP_FILE_LIST BP_NewFileList ( P_BP_FILE_LIST first , P_BP_FILE_LIST next , P_BP_FILE_LIST prev ) { P_BP_FILE_LIST outList = ( P_BP_FILE_LIST ) bpcalloc ( sizeof ( BP_FILE_LIST ) , 1 ) ; if ( ! outList ) return NULL ; outList -> first = first ; if ( ! outList -> first ) outList -> first = outList ; outList -> next = next ; outList -> prev = prev ; return outList ; }
creates a new file list:
creates a new file list :
// attempt to create a new list item // mark first pointer position // set default first pointer if unset // set next and prev directly // return the newly generated list