diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
commit | 838baf3f99ec5ab81b063eb5449a3381d860f377 (patch) | |
tree | dd31abcfde08ca92e4623b8f50b3d762a87c997a /kpat/freecell-solver/main.c | |
parent | 2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff) | |
download | tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip |
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpat/freecell-solver/main.c')
-rw-r--r-- | kpat/freecell-solver/main.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kpat/freecell-solver/main.c b/kpat/freecell-solver/main.c index d16468c4..f4949741 100644 --- a/kpat/freecell-solver/main.c +++ b/kpat/freecell-solver/main.c @@ -43,7 +43,7 @@ static void my_iter_handler( int iter_num, int depth, void * ptr_state, - int parent_iter_num, + int tqparent_iter_num, void * lp_context ) { @@ -57,7 +57,7 @@ static void my_iter_handler( ); if (context->display_parent_iter_num) { - fprintf(stdout, "Parent Iteration: %i\n", parent_iter_num); + fprintf(stdout, "Parent Iteration: %i\n", tqparent_iter_num); } fprintf(stdout, "\n"); @@ -169,8 +169,8 @@ help_screen_t help_screens[] = { "-snx --standard-notation-extended\n" " Display the moves in extended standard notation while specifying the\n" " number of cards moved if applicable\n" -"-pi --display-parent-iter \n" -" Display the index of the parent iteration of each state in the\n" +"-pi --display-tqparent-iter \n" +" Display the index of the tqparent iteration of each state in the\n" " run-time dump.\n" "\n" "--freecells-num [Freecells\' Number]\n" @@ -227,35 +227,35 @@ help_screen_t help_screens[] = { " '2' - put freecell cards on top of stacks.\n" " '3' - put non-top stack cards in the foundations.\n" " '4' - move stack cards to different stacks.\n" -" '5' - move stack cards to a parent card on the same stack.\n" +" '5' - move stack cards to a tqparent card on the same stack.\n" " '6' - move sequences of cards onto free stacks.\n" " '7' - put freecell cards on empty stacks.\n" -" '8' - move cards to a different parent.\n" +" '8' - move cards to a different tqparent.\n" " '9' - empty an entire stack into the freecells.\n" "\n" " Atomic Freecell Tests:\n" "\n" " 'A' - move a stack card to an empty stack.\n" -" 'B' - move a stack card to a parent on a different stack.\n" +" 'B' - move a stack card to a tqparent on a different stack.\n" " 'C' - move a stack card to a freecell.\n" -" 'D' - move a freecel card to a parent.\n" +" 'D' - move a freecel card to a tqparent.\n" " 'E' - move a freecel card to an empty stack.\n" "\n" " Simple Simon Tests:\n" "\n" " 'a' - move a full sequence to the foundations.\n" -" 'b' - move a sequence to a true parent of his.\n" -" 'c' - move a whole stack sequence to a false parent (in order to\n" +" 'b' - move a sequence to a true tqparent of his.\n" +" 'c' - move a whole stack sequence to a false tqparent (in order to\n" " clear the stack)\n" -" 'd' - move a sequence to a true parent that has some cards above it.\n" -" 'e' - move a sequence with some cards above it to a true parent.\n" -" 'f' - move a sequence with a junk sequence above it to a true parent\n" +" 'd' - move a sequence to a true tqparent that has some cards above it.\n" +" 'e' - move a sequence with some cards above it to a true tqparent.\n" +" 'f' - move a sequence with a junk sequence above it to a true tqparent\n" " that has some cards above it.\n" -" 'g' - move a whole stack sequence to a false parent which has some\n" +" 'g' - move a whole stack sequence to a false tqparent which has some\n" " cards above it.\n" -" 'h' - move a sequence to a parent on the same stack.\n" +" 'h' - move a sequence to a tqparent on the same stack.\n" "\n" -" Tests are grouped with parenthesis or square brackets. Each group\n" +" Tests are grouped with tqparenthesis or square brackets. Each group\n" " will be randomized as a whole by the random-dfs scan.\n" "\n" "\n" @@ -313,7 +313,7 @@ help_screen_t help_screens[] = { "\n" "\n" "--reparent-states\n" -" Reparent states that have a larger depth than that of the state\n" +" Retqparent states that have a larger depth than that of the state\n" " from which they were reached a posteriori.\n" "--calc-real-depth\n" " If --reparent-states is enabled, then explictly calculate the real\n" @@ -498,7 +498,7 @@ static int cmd_line_callback( dc->display_moves = 1; dc->display_states = 1; } - else if ((!strcmp(argv[arg], "-pi")) || (!strcmp(argv[arg], "--display-parent-iter"))) + else if ((!strcmp(argv[arg], "-pi")) || (!strcmp(argv[arg], "--display-tqparent-iter"))) { dc->display_parent_iter_num = 1; } @@ -588,7 +588,7 @@ static char * known_parameters[] = { "-sn", "--standard-notation", "-snx", "--standard-notation-extended", "-sam", "--display-states-and-moves", - "-pi", "--display-parent-iter", + "-pi", "--display-tqparent-iter", "--reset", NULL }; @@ -658,12 +658,12 @@ int main(int argc, char * argv[]) if ((arg == argc) || (!strcmp(argv[arg], "-"))) { file = stdin; - if (!getenv("FREECELL_SOLVER_QUIET")) + if (!getenv("FREECELL_SOLVER_TQUIET")) { fprintf(stderr, "%s", "Reading the board from the standard input.\n" "Type \"fc-solve --help\" for more usage information.\n" - "To cancel this message set the FREECELL_SOLVER_QUIET environment variable.\n" + "To cancel this message set the FREECELL_SOLVER_TQUIET environment variable.\n" ); } } |