-
Notifications
You must be signed in to change notification settings - Fork 2
/
global.h
61 lines (51 loc) · 1.21 KB
/
global.h
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef GLOBAL_H
#define GLOBAL_H
#include <stdio.h>
#include <string>
#include <memory>
#include <stack>
#ifndef UCHAR_MAX
#define UCHAR_MAX 255
#endif
#ifndef USHORT_MAX
#define USHORT_MAX 65535
#endif
#define NUMBER_NAME "number"
#define OBJECT_NAME "object"
#define MAX(x,y) ((x)>(y)?(x):(y))
#define MIN(x,y) ((x)<(y)?(x):(y))
#define DISP_SIZE 128
#define DISP_INT_SIZE 128
class heuristic_t;
namespace gpt
{
extern bool default_hp;
extern const char *algorithm;
extern bool domain_analysis;
extern unsigned dead_end_value;
extern unsigned cutoff;
extern double epsilon;
extern bool hash_all;
extern const char *heuristic;
extern size_t initial_hash_size;
extern unsigned max_database_size;
extern bool noise;
extern double noise_level;
extern unsigned seed;
extern int simulations;
extern unsigned verbosity;
extern unsigned warning_level;
extern double heuristic_weight;
extern size_t xtra;
extern std::stack<heuristic_t*> hstack;
};
typedef unsigned char uchar_t;
typedef unsigned short ushort_t;
inline void
notify( void *ptr, const char *name )
{
#ifdef MEM_DEBUG
fprintf( stderr, "notify %s %p\n", name, ptr );
#endif
}
#endif // GLOBAL_H