214 #define PQUEUE_ALLOC(c) Pqueue_alloc(c)
215 #define PQUEUE_FREE(q) Pqueue_free(q)
216 #define PQUEUE_ISEMPTY(q) queue_isEmpty(q)
217 #define PQUEUE_CLEAR(q) queue_clear(q)
218 #define PQUEUE_SHUFFLE(q) queue_shuffle(q, randomPtr);
219 #define PQUEUE_PUSH(q, d) Pqueue_push(q, (void*)(d))
220 #define PQUEUE_POP(q) queue_pop(q)
222 #define TMQUEUE_ALLOC(c) TMqueue_alloc(TM_ARG c)
223 #define TMQUEUE_FREE(q) TMqueue_free(TM_ARG q)
224 #define TMQUEUE_ISEMPTY(q) TMqueue_isEmpty(TM_ARG q)
225 #define TMQUEUE_PUSH(q, d) TMqueue_push(TM_ARG q, (void*)(d))
226 #define TMQUEUE_POP(q) TMqueue_pop(TM_ARG q)
227 #define TMQUEUE_CLEAR(q) TMqueue_clear(TM_ARG q)
queue_t * queue_alloc(long initCapacity)
Definition: queue.c:98
#define TM_CALLABLE
Definition: cxxtm.hpp:32
queue_t * TMqueue_alloc(TM_ARGDECL long initCapacity)
Definition: queue.c:148
bool_t queue_push(queue_t *queuePtr, void *dataPtr)
Definition: queue.c:291
void Pqueue_free(queue_t *queuePtr)
Definition: queue.c:185
void queue_shuffle(queue_t *queuePtr, random_t *randomPtr)
Definition: queue.c:258
TM_CALLABLE bool_t TMqueue_isEmpty(TM_ARGDECL queue_t *queuePtr)
Definition: queue.c:243
void queue_free(queue_t *queuePtr)
Definition: queue.c:173
void queue_clear(queue_t *queuePtr)
Definition: queue.c:224
int bool_t
Definition: portable_defns.h:32
TM_CALLABLE void * TMqueue_pop(TM_ARGDECL queue_t *queuePtr)
Definition: queue.c:481
#define TM_ARGDECL
Definition: tm.h:532
void TMqueue_free(TM_ARGDECL queue_t *queuePtr)
Definition: queue.c:197
void * queue_pop(queue_t *queuePtr)
Definition: queue.c:458
TM_CALLABLE bool_t TMqueue_push(TM_ARGDECL queue_t *queuePtr, void *dataPtr)
Definition: queue.c:402
bool_t Pqueue_push(queue_t *queuePtr, void *dataPtr)
Definition: queue.c:346
void TMqueue_clear(TM_ARGDECL queue_t *queuePtr)
Definition: queue.c:231
bool_t queue_isEmpty(queue_t *queuePtr)
Definition: queue.c:209
queue_t * Pqueue_alloc(long initCapacity)
Definition: queue.c:123