blob: 7945051c3ff61bc104430ee0004443d217b803f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#if !defined(_LYHASH_H_)
#define _LYHASH_H_ 1
#ifndef HTUTILS_H
#include <HTUtils.h>
#endif
struct _hashbucket {
char *name; /* name of this item */
int code; /* code of this item */
int color; /* color highlighting to be done */
int mono; /* mono highlighting to be done */
int cattr; /* attributes to go with the color */
struct _hashbucket *next; /* next item */
};
typedef struct _hashbucket bucket;
#if !defined(CSHASHSIZE)
#ifdef NOT_USED
#define CSHASHSIZE 32768
#else
#define CSHASHSIZE 8193
#endif
#endif
#define NOSTYLE -1
extern bucket hashStyles[CSHASHSIZE];
extern int hash_code PARAMS((char* string));
extern bucket special_bucket;/*it's used when OMIT_SCN_KEEPING is 1 in HTML.c
and LYCurses.c. */
extern bucket nostyle_bucket;/*initialized properly - to be used in CTRACE when
NOSTYLE is passed as 'style' to curses_w_style */
extern int hash_code_lowercase_on_fly PARAMS((char* string));
extern int hash_code_aggregate_char PARAMS((char c,int hash));
extern int hash_code_aggregate_lower_str PARAMS((char* c,int hash_was));
#ifdef NOT_USED
extern int hash_table[CSHASHSIZE]; /* 32K should be big enough */
#endif
extern int s_alink, s_a, s_status,
s_label, s_value, s_high,
s_normal, s_alert, s_title,
s_whereis;
#define CACHEW 128
#define CACHEH 64
extern unsigned cached_styles[CACHEH][CACHEW];
#endif /* _LYHASH_H_ */
|