bfile_heuristics.c

Thu, 20 Oct 2011 15:21:53 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 20 Oct 2011 15:21:53 +0200
changeset 21
91e0890464b0
parent 20
43725438ac50
child 22
4508da679ffb
permissions
-rw-r--r--

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;
}

mercurial