summaryrefslogtreecommitdiffstats
path: root/kpat/freecell-solver/pqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'kpat/freecell-solver/pqueue.c')
-rw-r--r--kpat/freecell-solver/pqueue.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/kpat/freecell-solver/pqueue.c b/kpat/freecell-solver/pqueue.c
index 086cce96..e507a875 100644
--- a/kpat/freecell-solver/pqueue.c
+++ b/kpat/freecell-solver/pqueue.c
@@ -25,9 +25,6 @@
#include "dmalloc.h"
#endif
-#define TRUE 1
-#define FALSE 0
-
/* initialise the priority queue with a maximum size of maxelements. maxrating is the highest or lowest value of an
entry in the pqueue depending on whether it is ascending or descending respectively. Finally the bool32 tells you whether
the list is sorted ascending or descending... */
@@ -50,10 +47,10 @@ void freecell_solver_PQueueInitialise(
}
/* join a priority queue
- returns TRUE if successful, FALSE if fails. (You fail by filling the pqueue.)
+ returns true if successful, false if fails. (You fail by filling the pqueue.)
PGetRating is a function which returns the rating of the item you're adding for sorting purposes */
-int freecell_solver_PQueuePush( PQUEUE *pq, void *item, pq_rating_t r)
+void freecell_solver_PQueuePush( PQUEUE *pq, void *item, pq_rating_t r)
{
uint32 i;
pq_element_t * Elements = pq->Elements;
@@ -103,8 +100,7 @@ int freecell_solver_PQueuePush( PQUEUE *pq, void *item, pq_rating_t r)
pq->CurrentSize = CurrentSize;
- return TRUE;
-
+ return;
}
#define PQueueIsEmpty(pq) ((pq)->CurrentSize == 0)