void stergeJucator(Player *first, char *name) {
	auto findMethod = [&](ListNode *node) {
		Player *crt = (Player *)node;
		if (crt->name == NULL) return false;
		return strcmp(crt->name, name) == 0;
	};

	removeNodeFromList(first, findMethod, freePlayerMethod);
}
Пример #2
0
 void removeNodeFromList(TR::Node *node, List<TR::Node> *nodes, List< List<TR::Node> > *parents, bool checkSymRefs, List<TR::Node> *loadsAlreadyVisited = NULL, List<TR::Node> *loadsAlreadyVisitedThatCannotBeRematerialized = NULL)
    {
    TR::SparseBitVector EMPTY_SET(comp()->allocator());
    removeNodeFromList(node, nodes, parents, checkSymRefs, loadsAlreadyVisited, loadsAlreadyVisitedThatCannotBeRematerialized, EMPTY_SET);
    }