Thu, 20 Oct 2011 14:13:56 +0200
Changed author comments + added signatures for upcomming bfile heuristics
universe@20 | 1 | /* |
universe@20 | 2 | * bfile_heuristics.h |
universe@20 | 3 | * |
universe@20 | 4 | * Created on: 20.10.2011 |
universe@20 | 5 | * Author: Mike |
universe@20 | 6 | */ |
universe@20 | 7 | |
universe@20 | 8 | #ifndef BFILE_HEURISTICS_H_ |
universe@20 | 9 | #define BFILE_HEURISTICS_H_ |
universe@20 | 10 | |
universe@20 | 11 | #include "stdinc.h" |
universe@20 | 12 | #include "settings.h" |
universe@20 | 13 | |
universe@20 | 14 | #ifdef _cplusplus |
universe@20 | 15 | extern "C" { |
universe@20 | 16 | #endif |
universe@20 | 17 | |
universe@20 | 18 | typedef struct { |
universe@20 | 19 | int level; |
universe@20 | 20 | int ccount[256]; |
universe@20 | 21 | } bfile_heuristics; |
universe@20 | 22 | |
universe@20 | 23 | bfile_heuristics *new_bfile_heuristics(int level); |
universe@20 | 24 | bool bfile_check(bfile_heuristics *def, int next_char); |
universe@20 | 25 | |
universe@20 | 26 | #ifdef _cplusplus |
universe@20 | 27 | } |
universe@20 | 28 | #endif |
universe@20 | 29 | |
universe@20 | 30 | #endif /* BFILE_HEURISTICS_H_ */ |