bfile_heuristics.h

changeset 21
91e0890464b0
parent 20
43725438ac50
child 22
4508da679ffb
     1.1 --- a/bfile_heuristics.h	Thu Oct 20 14:13:56 2011 +0200
     1.2 +++ b/bfile_heuristics.h	Thu Oct 20 15:21:53 2011 +0200
     1.3 @@ -9,22 +9,27 @@
     1.4  #define BFILE_HEURISTICS_H_
     1.5  
     1.6  #include "stdinc.h"
     1.7 -#include "settings.h"
     1.8 +
     1.9 +#define BFILE_IGNORE           0x00
    1.10 +#define BFILE_LOW_ACCURACY     0x01
    1.11 +#define BFILE_MEDIUM_ACCURACY  0x02
    1.12 +#define BFILE_HIGH_ACCURACY    0x04
    1.13 +
    1.14 +typedef struct {
    1.15 +  int level;
    1.16 +  int *ccount;
    1.17 +} bfile_heuristics_t;
    1.18  
    1.19  #ifdef _cplusplus
    1.20  extern "C" {
    1.21  #endif
    1.22  
    1.23 -typedef struct {
    1.24 -   int level;
    1.25 -   int ccount[256];
    1.26 -} bfile_heuristics;
    1.27 -
    1.28 -bfile_heuristics *new_bfile_heuristics(int level);
    1.29 -bool bfile_check(bfile_heuristics *def, int next_char);
    1.30 +bfile_heuristics_t *new_bfile_heuristics_t();
    1.31 +void destroy_bfile_heuristics_t(bfile_heuristics_t *def);
    1.32 +bool bfile_check(bfile_heuristics_t *def, int next_char);
    1.33  
    1.34  #ifdef _cplusplus
    1.35  }
    1.36  #endif
    1.37  
    1.38 -#endif /* BFILE_HEURISTICS_H_ */
    1.39 \ No newline at end of file
    1.40 +#endif /* BFILE_HEURISTICS_H_ */

mercurial