Tesseract 3.01
|
#include <stdio.h>
Go to the source code of this file.
Classes | |
struct | _TALLY_ |
Defines | |
#define | inc_tally_bucket(t, i) |
#define | iterate_tally(t, i) for (i=0; i<t->num_buckets; i++) |
#define | tally_entry(t, i) (t->buckets[i]) |
Typedefs | |
typedef struct _TALLY_ * | TALLY |
Functions | |
TALLY | new_tally (int num_buckets) |
void | print_tally (FILE *file, const char *string, TALLY t) |
#define inc_tally_bucket | ( | t, | |
i | |||
) |
(t->count++, \ ((i < t->num_buckets) ? \ (t->buckets[i]++) : \ (t->buckets[t->num_buckets-1]++)))
#define iterate_tally | ( | t, | |
i | |||
) | for (i=0; i<t->num_buckets; i++) |
#define tally_entry | ( | t, | |
i | |||
) | (t->buckets[i]) |
TALLY new_tally | ( | int | num_buckets | ) |
void print_tally | ( | FILE * | file, |
const char * | string, | ||
TALLY | t | ||
) |