1 /* $LynxId: LYHash.h,v 1.40 2018/03/10 01:47:33 tom Exp $ */
2 #ifndef _LYHASH_H_
3 #define _LYHASH_H_ 1
4 
5 #ifndef HTUTILS_H
6 #include <HTUtils.h>
7 #endif
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12     typedef struct {
13 	char *name;		/* name of this item */
14 	BOOL used;		/* color/attributes have been assigned */
15 	int color;		/* color highlighting to be done */
16 	int mono;		/* mono highlighting to be done */
17 	int cattr;		/* attributes to go with the color */
18     } bucket;
19 
20 #define CSHASHSIZE 9973		/* Arbitrary prime.  Memory/speed tradeoff */
21 
22 #define NOSTYLE -1
23 
24     extern bucket hashStyles[CSHASHSIZE];
25     extern bucket *nostyle_bucket(void);
26 
27     extern int color_style_1(const char *string);
28     extern int color_style_3(const char *p, const char *q, const char *r);
29     extern void free_hashStyles(void);
30     extern void report_hashStyles(void);
31 
32     extern int s_a;
33     extern int s_aedit;
34     extern int s_aedit_arr;
35     extern int s_aedit_pad;
36     extern int s_aedit_sel;
37     extern int s_alert;
38     extern int s_alink;
39     extern int s_curedit;
40     extern int s_forw_backw;
41     extern int s_hot_paste;
42     extern int s_menu_active;
43     extern int s_menu_bg;
44     extern int s_menu_entry;
45     extern int s_menu_frame;
46     extern int s_menu_number;
47     extern int s_menu_sb;
48     extern int s_normal;
49     extern int s_prompt_edit;
50     extern int s_prompt_edit_arr;
51     extern int s_prompt_edit_pad;
52     extern int s_prompt_sel;
53     extern int s_status;
54     extern int s_title;
55     extern int s_whereis;
56 
57 #ifdef USE_SCROLLBAR
58     extern int s_sb_aa;
59     extern int s_sb_bar;
60     extern int s_sb_bg;
61     extern int s_sb_naa;
62 #endif
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 #endif				/* _LYHASH_H_ */
68