home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lynx2.8.1dev.10.tar.gz / lynx2.8.1dev.10.tar / lynx2-8 / src / LYHash.h < prev    next >
C/C++ Source or Header  |  1997-10-15  |  875b  |  40 lines

  1. #if !defined(_LYHASH_H_)
  2. #define _LYHASH_H_ 1
  3.  
  4. struct _hashbucket {
  5.     char *name; /* name of this item */
  6.     int    code; /* code of this item */
  7.     int color; /* color highlighting to be done */
  8.     int mono; /* mono highlighting to be done */
  9.     int cattr; /* attributes to go with the color */
  10.     struct _hashbucket *next; /* next item */
  11. };
  12.  
  13. typedef struct _hashbucket bucket;
  14.  
  15. #if !defined(CSHASHSIZE)
  16. #ifdef NOT_USED    
  17. #define CSHASHSIZE 32768
  18. #else
  19. #define CSHASHSIZE 8193
  20. #endif
  21. #endif
  22.  
  23. #define NOSTYLE -1
  24.  
  25. extern bucket hashStyles[CSHASHSIZE];
  26. extern int hash_code PARAMS((char* string));
  27. #ifdef NOT_USED
  28. extern int hash_table[CSHASHSIZE]; /* 32K should be big enough */
  29. #endif
  30.  
  31. extern int    s_alink, s_a, s_status,
  32.         s_label, s_value, s_high,
  33.         s_normal, s_alert, s_title;
  34. #define CACHEW 128
  35. #define CACHEH 64
  36.  
  37. extern unsigned cached_styles[CACHEH][CACHEW];
  38.  
  39. #endif /* _LYHASH_H_ */
  40.