Thu, 20 Oct 2011 15:21:53 +0200
implemented bfile heuristics option + TODO: implement algorithm
1 /*
2 * bfile_heuristics.c
3 *
4 * Created on: 20.10.2011
5 * Author: Mike
6 */
8 #include "bfile_heuristics.h"
10 bfile_heuristics_t *new_bfile_heuristics_t() {
11 bfile_heuristics_t *ret = malloc(sizeof(bfile_heuristics_t));
12 ret->level = BFILE_MEDIUM_ACCURACY;
13 /* TODO: check why this fails */
14 /* ret->ccount = calloc(256, sizeof(int)); */
15 return ret;
16 }
18 void destroy_bfile_heuristics_t(bfile_heuristics_t *def) {
19 free(def->ccount);
20 free(def);
21 }
23 bool bfile_check(bfile_heuristics_t *def, int next_char) {
24 bool ret = false;
26 return ret;
27 }