File: caas.h

package info (click to toggle)
freecell-solver 2.4.1-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,880 kB
  • ctags: 1,155
  • sloc: ansic: 13,110; sh: 8,793; python: 342; perl: 323; makefile: 186
file content (43 lines) | stat: -rw-r--r-- 783 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

#ifndef __CAAS_H
#define __CAAS_H

#ifdef __cplusplus
extern "C" {
#endif

/* #define FCS_USE_INLINE */

#ifdef FCS_USE_INLINE

#ifndef GCC_INLINE
#ifdef __GNUC__
#define GCC_INLINE static inline
#else
#define GCC_INLINE
#endif
#endif

#include "caas.c"

#else   /* #ifdef FCS_USE_INLINE */

#define GCC_INLINE
/*
 * check_and_add_state is defined in caas.c.
 *
 * DFS stands for Depth First Search which is the type of scan Freecell
 * Solver uses to solve a given board.
 * */
extern int freecell_solver_check_and_add_state(
    freecell_solver_soft_thread_t * soft_thread,
    fcs_state_with_locations_t * new_state,
    fcs_state_with_locations_t * * existing_state,
    int depth);
#endif /* #ifdef FCS_USE_INLINE */

#ifdef __cplusplus
}
#endif

#endif /* #ifndef __CAAS_H */