| 1 |
#ifndef RXUNFAH |
| 2 |
#define RXUNFAH |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#include "_rx.h" |
| 25 |
|
| 26 |
|
| 27 |
struct rx_unfaniverse |
| 28 |
{ |
| 29 |
int delay; |
| 30 |
int delayed; |
| 31 |
struct rx_hash table; |
| 32 |
struct rx_cached_rexp * free_queue; |
| 33 |
}; |
| 34 |
|
| 35 |
|
| 36 |
struct rx_unfa |
| 37 |
{ |
| 38 |
int refs; |
| 39 |
struct rexp_node * exp; |
| 40 |
struct rx * nfa; |
| 41 |
int cset_size; |
| 42 |
struct rx_unfaniverse * verse; |
| 43 |
}; |
| 44 |
|
| 45 |
struct rx_cached_rexp |
| 46 |
{ |
| 47 |
struct rx_unfa unfa; |
| 48 |
struct rx_cached_rexp * next; |
| 49 |
struct rx_cached_rexp * prev; |
| 50 |
struct rx_hash_item * hash_item; |
| 51 |
}; |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
#ifdef __STDC__ |
| 56 |
extern struct rx_unfaniverse * rx_make_unfaniverse (int delay); |
| 57 |
extern void rx_free_unfaniverse (struct rx_unfaniverse * it); |
| 58 |
extern struct rx_unfa * rx_unfa (struct rx_unfaniverse * unfaniverse, struct rexp_node * exp, int cset_size); |
| 59 |
extern void rx_free_unfa (struct rx_unfa * unfa); |
| 60 |
extern void rx_save_unfa (struct rx_unfa * unfa); |
| 61 |
|
| 62 |
#else |
| 63 |
extern struct rx_unfaniverse * rx_make_unfaniverse (); |
| 64 |
extern void rx_free_unfaniverse (); |
| 65 |
extern struct rx_unfa * rx_unfa (); |
| 66 |
extern void rx_free_unfa (); |
| 67 |
extern void rx_save_unfa (); |
| 68 |
|
| 69 |
#endif |
| 70 |
#endif |