bookloupe/counters.h
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--
Fix bug #12: Balanced square brackets test should recognize multi-line [Illustration] tags
     1 #ifndef COUNTERS_H
     2 #define COUNTERS_H
     3 
     4 #include <glib.h>
     5 
     6 /* Special counters live in the private use area */
     7 enum {
     8     COUNTER_ILLUSTRATION=0xE000,
     9     NO_SPECIAL_COUNTERS
    10 };
    11 
    12 struct counters {
    13     GTree *matching;
    14     long quot;
    15     int c_unders;
    16 };
    17 
    18 void increment_matching(struct counters *counters,gunichar ch,gboolean open);
    19 int matching_count(const struct counters *counters,gunichar ch,gboolean open);
    20 int matching_difference(const struct counters *counters,gunichar ch);
    21 void counters_reset(struct counters *counters);
    22 void counters_destroy(struct counters *counters);
    23 
    24 #endif /* COUNTERS_H */