Thu, 20 Oct 2011 15:21:53 +0200
implemented bfile heuristics option + TODO: implement algorithm
/* * bfile_heuristics.c * * Created on: 20.10.2011 * Author: Mike */ #include "bfile_heuristics.h" bfile_heuristics_t *new_bfile_heuristics_t() { bfile_heuristics_t *ret = malloc(sizeof(bfile_heuristics_t)); ret->level = BFILE_MEDIUM_ACCURACY; /* TODO: check why this fails */ /* ret->ccount = calloc(256, sizeof(int)); */ return ret; } void destroy_bfile_heuristics_t(bfile_heuristics_t *def) { free(def->ccount); free(def); } bool bfile_check(bfile_heuristics_t *def, int next_char) { bool ret = false; return ret; }