home *** CD-ROM | disk | FTP | other *** search
/ Mega CD-ROM 1 / megacd_rom_1.zip / megacd_rom_1 / IRIT / IRITS.ZIP / PRIORQL.H < prev    next >
C/C++ Source or Header  |  1990-05-05  |  743b  |  19 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * Definitions, local to module, of Priority Queue module:             *
  7. *****************************************************************************/
  8.  
  9. #ifndef PRIOR_Q_LH
  10. #define PRIOR_Q_LH
  11.  
  12. #define PQ_NEW_NODE(PQ)  { \
  13.     PQ = (PriorQue *) MyMalloc(sizeof(PriorQue), OTHER_TYPE); \
  14.     (PQ) -> Right = (PQ) -> Left = NULL; \
  15.     (PQ) -> Data = NULL; }
  16. #define PQ_FREE_NODE(PQ) { MyFree((char *) (PQ), OTHER_TYPE); PQ = NULL; }
  17.  
  18. #endif /* PRIOR_Q_LH */
  19.