diff -r 43725438ac50 -r 91e0890464b0 bfile_heuristics.h --- a/bfile_heuristics.h Thu Oct 20 14:13:56 2011 +0200 +++ b/bfile_heuristics.h Thu Oct 20 15:21:53 2011 +0200 @@ -9,22 +9,27 @@ #define BFILE_HEURISTICS_H_ #include "stdinc.h" -#include "settings.h" + +#define BFILE_IGNORE 0x00 +#define BFILE_LOW_ACCURACY 0x01 +#define BFILE_MEDIUM_ACCURACY 0x02 +#define BFILE_HIGH_ACCURACY 0x04 + +typedef struct { + int level; + int *ccount; +} bfile_heuristics_t; #ifdef _cplusplus extern "C" { #endif -typedef struct { - int level; - int ccount[256]; -} bfile_heuristics; - -bfile_heuristics *new_bfile_heuristics(int level); -bool bfile_check(bfile_heuristics *def, int next_char); +bfile_heuristics_t *new_bfile_heuristics_t(); +void destroy_bfile_heuristics_t(bfile_heuristics_t *def); +bool bfile_check(bfile_heuristics_t *def, int next_char); #ifdef _cplusplus } #endif -#endif /* BFILE_HEURISTICS_H_ */ \ No newline at end of file +#endif /* BFILE_HEURISTICS_H_ */