summaryrefslogtreecommitdiffstats
path: root/kpat/freecell-solver
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 15:50:40 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 23:25:01 +0900
commit664580ffc694a1f9e7ab25d4636ca9696a38d958 (patch)
treedaea2bbeea9cce36e9c8fe66afd1930e397e7ebd /kpat/freecell-solver
parentd62a856cb43f9a527dc936783d18fbfe4cc0d9c2 (diff)
downloadtdegames-r14.1.4.tar.gz
tdegames-r14.1.4.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 66230b1cca2fa5c95886d8cf708829e4bfac2b10)
Diffstat (limited to 'kpat/freecell-solver')
-rw-r--r--kpat/freecell-solver/pqueue.c10
-rw-r--r--kpat/freecell-solver/pqueue.h2
2 files changed, 4 insertions, 8 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)
diff --git a/kpat/freecell-solver/pqueue.h b/kpat/freecell-solver/pqueue.h
index cf5f5372..252653d6 100644
--- a/kpat/freecell-solver/pqueue.h
+++ b/kpat/freecell-solver/pqueue.h
@@ -58,7 +58,7 @@ void freecell_solver_PQueueInitialise(
void freecell_solver_PQueueFree( PQUEUE *pq );
-int freecell_solver_PQueuePush( PQUEUE *pq, void *item, pq_rating_t);
+void freecell_solver_PQueuePush( PQUEUE *pq, void *item, pq_rating_t);
void *freecell_solver_PQueuePop( PQUEUE *pq);