~ubuntu-branches/ubuntu/natty/freecell-solver/natty

« back to all changes in this revision

Viewing changes to config.h

  • Committer: Bazaar Package Importer
  • Author(s): RISKO Gergely
  • Date: 2009-07-15 17:42:19 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090715174219-2rlyyvse0kezacly
Tags: 2.34.0-1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    config.h - Configuration file for Freecell Solver
3
 
 
4
 
    Written by Shlomi Fish, 2000
5
 
 
6
 
    This file is distributed under the public domain.
7
 
    (It is not copyrighted).
8
 
*/
9
 
 
10
 
#ifndef FC_SOLVE__CONFIG_H
11
 
#define FC_SOLVE__CONFIG_H
12
 
 
13
 
#ifdef __cplusplus
14
 
extern "C" {
15
 
#endif
16
 
 
17
 
/* #undef DEBUG_STATES */
18
 
/* #undef COMPACT_STATES */
19
 
#define INDIRECT_STACK_STATES
20
 
 
21
 
/* #undef CARD_DEBUG_PRES */
22
 
 
23
 
/*
24
 
 * Define this macro if the C compiler supports the keyword inline or
25
 
 * a similar keyword that was found by Autoconf (and defined as inline).
26
 
 * */
27
 
/* #undef HAVE_C_INLINE */
28
 
 
29
 
 
30
 
/*
31
 
    The sort margin size for the previous states array.
32
 
*/
33
 
#define PREV_STATES_SORT_MARGIN 32
34
 
/*
35
 
    The amount prev_states grow by each time it each resized.
36
 
    Should be greater than 0 and in order for the program to be
37
 
    efficient, should be much bigger than
38
 
    PREV_STATES_SORT_MARGIN.
39
 
*/
40
 
#define PREV_STATES_GROW_BY 128
41
 
 
42
 
/*
43
 
    The amount the pack pointers array grows by. Shouldn't be too high
44
 
    because it doesn't happen too often.
45
 
*/
46
 
#define IA_STATE_PACKS_GROW_BY 32
47
 
 
48
 
/* #undef FCS_FREECELL_ONLY */
49
 
 
50
 
/*
51
 
 * The maximal number of Freecells. For efficiency's sake it should be a
52
 
 * multiple of 4.
53
 
 * */
54
 
 
55
 
#ifdef FCS_FREECELL_ONLY
56
 
#define HARD_CODED_NUM_FREECELLS 4
57
 
#define HARD_CODED_NUM_STACKS 8
58
 
#define HARD_CODED_NUM_DECKS 1
59
 
#endif
60
 
 
61
 
#ifdef HARD_CODED_NUM_FREECELLS
62
 
#define MAX_NUM_FREECELLS HARD_CODED_NUM_FREECELLS
63
 
#else
64
 
#define MAX_NUM_FREECELLS 8
65
 
#endif
66
 
 
67
 
/*
68
 
 * The maximal number of Stacks. For efficiency's sake it should be a
69
 
 * multiple of 4.
70
 
 * */
71
 
 
72
 
#ifdef HARD_CODED_NUM_STACKS
73
 
#define MAX_NUM_STACKS HARD_CODED_NUM_STACKS
74
 
#else
75
 
#define MAX_NUM_STACKS 10
76
 
#endif
77
 
/*
78
 
 * The maximal number of initial cards that can be found in a stack.
79
 
 * */
80
 
#define MAX_NUM_INITIAL_CARDS_IN_A_STACK 8
81
 
 
82
 
#ifdef HARD_CODED_NUM_DECKS
83
 
#define MAX_NUM_DECKS HARD_CODED_NUM_DECKS
84
 
#else
85
 
#define MAX_NUM_DECKS 2
86
 
#endif
87
 
 
88
 
 
89
 
#define FCS_STATE_STORAGE_INDIRECT 0
90
 
#define FCS_STATE_STORAGE_INTERNAL_HASH 1
91
 
#define FCS_STATE_STORAGE_LIBAVL_AVL_TREE 2
92
 
#define FCS_STATE_STORAGE_LIBAVL_REDBLACK_TREE 3
93
 
#define FCS_STATE_STORAGE_LIBREDBLACK_TREE 4
94
 
#define FCS_STATE_STORAGE_GLIB_TREE 5
95
 
#define FCS_STATE_STORAGE_GLIB_HASH 6
96
 
#define FCS_STATE_STORAGE_DB_FILE 7
97
 
#define FCS_STATE_STORAGE_JUDY 8
98
 
 
99
 
#define FCS_STACK_STORAGE_INTERNAL_HASH 0
100
 
#define FCS_STACK_STORAGE_LIBAVL_AVL_TREE 1
101
 
#define FCS_STACK_STORAGE_LIBAVL_REDBLACK_TREE 2
102
 
#define FCS_STACK_STORAGE_LIBREDBLACK_TREE 3
103
 
#define FCS_STACK_STORAGE_GLIB_TREE 4
104
 
#define FCS_STACK_STORAGE_GLIB_HASH 5
105
 
#define FCS_STACK_STORAGE_JUDY 6
106
 
 
107
 
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_INTERNAL_HASH
108
 
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_INTERNAL_HASH
109
 
 
110
 
#ifdef __cplusplus
111
 
}
112
 
#endif
113
 
 
114
 
#endif
115
 
 
116
 
/* Define to 1 if you have the `avl' library (-lavl). */
117
 
#undef HAVE_LIBAVL
118
 
 
119
 
/* Define to 1 if you have the `glib' library (-lglib). */
120
 
#undef HAVE_LIBGLIB
121
 
 
122
 
/* Define to 1 if you have the `m' library (-lm). */
123
 
/* #undef HAVE_LIBM */
124
 
 
125
 
/* Define to 1 if you have the `redblack' library (-lredblack). */
126
 
#undef HAVE_LIBREDBLACK
127
 
 
128
 
/* Name of package */
129
 
#define PACKAGE ""
130
 
 
131
 
/* Define to the address where bug reports for this package should be sent. */
132
 
#define PACKAGE_BUGREPORT ""
133
 
 
134
 
/* Define to the full name of this package. */
135
 
#define PACKAGE_NAME ""
136
 
 
137
 
/* Define to the full name and version of this package. */
138
 
#define PACKAGE_STRING ""
139
 
 
140
 
/* Define to the one symbol short name of this package. */
141
 
#define PACKAGE_TARNAME ""
142
 
 
143
 
/* Define to the version of this package. */
144
 
#define PACKAGE_VERSION ""
145
 
 
146
 
/* Version number of package */
147
 
#define VERSION "2.20.0"
148
 
 
149
 
/* Define to `__inline__' or `__inline' if that's what the C compiler
150
 
   calls it, or to nothing if 'inline' is not supported under any name.  */
151
 
#ifndef __cplusplus
152
 
#undef inline
153
 
#endif
154