home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************
- * "Irit" - the 3d polygonal solid modeller. *
- * *
- * Written by: Gershon Elber Ver 0.2, Mar. 1990 *
- ******************************************************************************
- * Definitions, visible to others, of Priority Queue module: *
- *****************************************************************************/
-
- #ifndef PRIOR_Q_GH
- #define PRIOR_Q_GH
-
- typedef struct PriorQue {
- struct PriorQue *Right, *Left; /* Pointers to two sons of this node. */
- VoidPtr Data; /* Pointers to the data itself. */
- } PriorQue;
-
- /* And global function prototypes: */
-
- void PQInit(PriorQue **PQ);
- int PQEmpty(PriorQue *PQ);
- void PQCompFunc(int (*PQCompFunc)());
- VoidPtr PQFirst(PriorQue **PQ, int Delete);
- VoidPtr PQInsert(PriorQue **PQ, VoidPtr NewItem);
- VoidPtr PQDelete(PriorQue **PQ, VoidPtr NewItem);
- VoidPtr PQNext(PriorQue *PQ, VoidPtr CmpItem, VoidPtr BiggerThan);
- void PQPrint(PriorQue *PQ, void (*PrintFunc)());
- void PQFree(PriorQue *PQ, int FreeItems);
-
- #endif /* PRIOR_Q_GH */
-