Exemplo n.º 1
0
void Push_Back(sListNode* & pHead, DataType x)
{
	if(pHead == NULL)
	{
		pHead = Make_Node(x);
	}
	else
	{
		sListNode* tail = pHead;
		while(tail->next != NULL)
		{
			tail = tail->next;
		}
		tail->next = Make_Node(x);
	}
}
Exemplo n.º 2
0
Arquivo: t-gob.c Projeto: 51weekend/r3
*/  REBGOB *Make_Gob(void)
/*
**      Allocate a new GOB.
**
***********************************************************************/
{
	REBGOB *gob = Make_Node(GOB_POOL);
	CLEAR(gob, sizeof(REBGOB));
	GOB_W(gob) = 100;
	GOB_H(gob) = 100;
	return gob;
}
Exemplo n.º 3
0
Arquivo: t-gob.c Projeto: xqlab/r3
*/  REBGOB *Make_Gob(void)
/*
**      Allocate a new GOB.
**
***********************************************************************/
{
    REBGOB *gob = Make_Node(GOB_POOL);
    CLEAR(gob, sizeof(REBGOB));
    GOB_W(gob) = 100;
    GOB_H(gob) = 100;
    USE_GOB(gob);
    if ((GC_Ballast -= Mem_Pools[GOB_POOL].wide) <= 0) SET_SIGNAL(SIG_RECYCLE);
    return gob;
}