summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/fonts/malayalam/preproc/pstree.h
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/fonts/malayalam/preproc/pstree.h')
-rw-r--r--Master/texmf-dist/source/fonts/malayalam/preproc/pstree.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/fonts/malayalam/preproc/pstree.h b/Master/texmf-dist/source/fonts/malayalam/preproc/pstree.h
new file mode 100644
index 00000000000..8b2677c06b1
--- /dev/null
+++ b/Master/texmf-dist/source/fonts/malayalam/preproc/pstree.h
@@ -0,0 +1,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 */ \ No newline at end of file