7 |
7 |
8 #ifndef BFILE_HEURISTICS_H_ |
8 #ifndef BFILE_HEURISTICS_H_ |
9 #define BFILE_HEURISTICS_H_ |
9 #define BFILE_HEURISTICS_H_ |
10 |
10 |
11 #include "stdinc.h" |
11 #include "stdinc.h" |
12 #include "settings.h" |
12 |
|
13 #define BFILE_IGNORE 0x00 |
|
14 #define BFILE_LOW_ACCURACY 0x01 |
|
15 #define BFILE_MEDIUM_ACCURACY 0x02 |
|
16 #define BFILE_HIGH_ACCURACY 0x04 |
|
17 |
|
18 typedef struct { |
|
19 int level; |
|
20 int *ccount; |
|
21 } bfile_heuristics_t; |
13 |
22 |
14 #ifdef _cplusplus |
23 #ifdef _cplusplus |
15 extern "C" { |
24 extern "C" { |
16 #endif |
25 #endif |
17 |
26 |
18 typedef struct { |
27 bfile_heuristics_t *new_bfile_heuristics_t(); |
19 int level; |
28 void destroy_bfile_heuristics_t(bfile_heuristics_t *def); |
20 int ccount[256]; |
29 bool bfile_check(bfile_heuristics_t *def, int next_char); |
21 } bfile_heuristics; |
|
22 |
|
23 bfile_heuristics *new_bfile_heuristics(int level); |
|
24 bool bfile_check(bfile_heuristics *def, int next_char); |
|
25 |
30 |
26 #ifdef _cplusplus |
31 #ifdef _cplusplus |
27 } |
32 } |
28 #endif |
33 #endif |
29 |
34 |