home *** CD-ROM | disk | FTP | other *** search
- /* global definitions and tables */
-
- #include <stdio.h>
-
- #ifdef __TURBOC__
- #include <alloc.h>
- #include <stdlib.h>
- #include <dir.h>
- #endif
- #ifdef BSD
- #include <malloc.h>
- #define far
- #endif
- #ifdef MSDOS
- #include <malloc.h>
- #include <direct.h>
- #include <stdlib.h>
- #endif
- #include <sys/types.h>
- #include <string.h>
- #include <sys/stat.h>
-
- /* constants for splay algorithm */
-
- #define CHAR_RANGE (255)
- #define EOF_CODE (CHAR_RANGE + 1)
- #define MAXCHAR (EOF_CODE + 1)
- #define SUCCMAX (MAXCHAR + 1)
- #define TWICEMAX (2 * MAXCHAR + 1)
- #define ROOT 1
-
- /* Markov model states */
- /* Needs ~= 140kbytes heap to alloc properly */
-
- #define STYLE_ID 6
- #define MAXSTATE 64 /* 2 << 6 */
-
- /* global variables */
-
- extern char spl_passwd[];
-
- /* end */
-