summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/fonts/malayalam/preproc/pstree.h
blob: 8b2677c06b1243dea5dddef782e7d202f0baee81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef PSTREE_HEADER_READ
#define PSTREE_HEADER_READ

typedef struct PSTree
{   char                e;      /* element in this node */
    struct PSTree       *l;     /* left branch of PSTree */
    struct PSTree       *r;     /* right branch of PSTree */
    struct PSTree       *n;     /* PSTree for next element in pattern */
    char                *a;     /* Action with pattern that ends here */
} PSTree;

/* public operations */

int PSTinsert(PSTree **tree, char *pattern, char *action);
int PSTretract(PSTree **tree, char *pattern);
char *PSTmatch(PSTree *tree, const char *pattern, int *length);

#endif
/* eof */