diff options
Diffstat (limited to 'private/unimodem/new/match/mt.h')
-rw-r--r-- | private/unimodem/new/match/mt.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/private/unimodem/new/match/mt.h b/private/unimodem/new/match/mt.h new file mode 100644 index 000000000..56028c84a --- /dev/null +++ b/private/unimodem/new/match/mt.h @@ -0,0 +1,28 @@ +#ifndef _MT_ +#define _MT_ + +#define fMATCH_PARTIAL (0x1<<0) +#define fMATCH_COMPLETE (0x1<<1) + + +typedef struct +{ + DWORD dwLen; + CHAR *pb; + LPVOID pv; + +} MATCHREC, *PMATCHREC; + +typedef DWORD HMATCHTREE; + +HMATCHTREE mtCreateTree(PMATCHREC rgmr, DWORD dwcmr); +void mtFreeTree (HMATCHTREE hmt); +DWORD mtFindMatch (HMATCHTREE hmt, PMATCHREC pmr); + +#ifdef DEBUG +void mtDumpTree (HMATCHTREE hmt); +#else // !DEBUG +#define mtDumpTree(_mht) ((void) 0) +#endif // !DEBUG + +#endif // _MT_ |