| author | ali <ali@juiblex.co.uk> |
| Mon Sep 23 21:18:27 2013 +0100 (2013-09-23) | |
| changeset 103 | adc06e9e8470 |
| parent 94 | 3f655b1b0d93 |
| child 111 | f805130deb6f |
| child 123 | ddb5ddba6ef3 |
| permissions | -rw-r--r-- |
| ali@94 | 1 |
#ifndef COUNTERS_H |
| ali@94 | 2 |
#define COUNTERS_H |
| ali@94 | 3 |
|
| ali@94 | 4 |
#include <glib.h> |
| ali@94 | 5 |
|
| ali@103 | 6 |
/* Special counters live in the private use area */ |
| ali@103 | 7 |
enum {
|
| ali@103 | 8 |
COUNTER_ILLUSTRATION=0xE000, |
| ali@103 | 9 |
NO_SPECIAL_COUNTERS |
| ali@103 | 10 |
}; |
| ali@103 | 11 |
|
| ali@94 | 12 |
struct counters {
|
| ali@94 | 13 |
GTree *matching; |
| ali@94 | 14 |
long quot; |
| ali@94 | 15 |
int c_unders; |
| ali@94 | 16 |
}; |
| ali@94 | 17 |
|
| ali@94 | 18 |
void increment_matching(struct counters *counters,gunichar ch,gboolean open); |
| ali@94 | 19 |
int matching_count(const struct counters *counters,gunichar ch,gboolean open); |
| ali@94 | 20 |
int matching_difference(const struct counters *counters,gunichar ch); |
| ali@103 | 21 |
void counters_reset(struct counters *counters); |
| ali@94 | 22 |
void counters_destroy(struct counters *counters); |
| ali@94 | 23 |
|
| ali@94 | 24 |
#endif /* COUNTERS_H */ |