~ubuntu-branches/ubuntu/edgy/lynx/edgy

« back to all changes in this revision

Viewing changes to src/LYHash.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-16 12:14:10 UTC
  • Revision ID: james.westby@ubuntu.com-20040916121410-cz1gu92c4nqfeyrg
Tags: upstream-2.8.5
ImportĀ upstreamĀ versionĀ 2.8.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if !defined(_LYHASH_H_)
 
2
#define _LYHASH_H_ 1
 
3
 
 
4
#ifndef HTUTILS_H
 
5
#include <HTUtils.h>
 
6
#endif
 
7
 
 
8
#define OMIT_SCN_KEEPING 0 /* whether to omit keeping of Style_className
 
9
    in HTML.c when lss support is on. 1 to increase performance. */
 
10
 
 
11
struct _hashbucket {
 
12
        char *name; /* name of this item */
 
13
        int     code; /* code of this item */
 
14
        int color; /* color highlighting to be done */
 
15
        int mono; /* mono highlighting to be done */
 
16
        int cattr; /* attributes to go with the color */
 
17
        struct _hashbucket *next; /* next item */
 
18
};
 
19
 
 
20
typedef struct _hashbucket bucket;
 
21
 
 
22
#if !defined(CSHASHSIZE)
 
23
#define CSHASHSIZE 8193
 
24
#endif
 
25
 
 
26
#define NOSTYLE -1
 
27
 
 
28
extern bucket hashStyles[CSHASHSIZE];
 
29
extern int hash_code PARAMS((CONST char* string));
 
30
extern bucket nostyle_bucket;/*initialized properly - to be used in CTRACE when
 
31
            NOSTYLE is passed as 'style' to curses_w_style */
 
32
 
 
33
extern int hash_code_lowercase_on_fly PARAMS((CONST char* string));
 
34
extern int hash_code_aggregate_char PARAMS((char c,int hash));
 
35
extern int hash_code_aggregate_lower_str PARAMS((CONST char* c, int hash_was));
 
36
 
 
37
extern int      s_a;
 
38
extern int      s_aedit;
 
39
extern int      s_aedit_arr;
 
40
extern int      s_aedit_pad;
 
41
extern int      s_aedit_sel;
 
42
extern int      s_alert;
 
43
extern int      s_alink;
 
44
extern int      s_curedit;
 
45
extern int      s_forw_backw;
 
46
extern int      s_hot_paste;
 
47
extern int      s_menu_active;
 
48
extern int      s_menu_bg;
 
49
extern int      s_menu_entry;
 
50
extern int      s_menu_frame;
 
51
extern int      s_menu_number;
 
52
extern int      s_menu_sb;
 
53
extern int      s_normal;
 
54
extern int      s_prompt_edit;
 
55
extern int      s_prompt_edit_arr;
 
56
extern int      s_prompt_edit_pad;
 
57
extern int      s_prompt_sel;
 
58
extern int      s_status;
 
59
extern int      s_title;
 
60
extern int      s_whereis;
 
61
 
 
62
#ifdef USE_SCROLLBAR
 
63
extern int      s_sb_aa;
 
64
extern int      s_sb_bar;
 
65
extern int      s_sb_bg;
 
66
extern int      s_sb_naa;
 
67
#endif
 
68
 
 
69
#if OMIT_SCN_KEEPING
 
70
extern bucket special_bucket;
 
71
#endif
 
72
 
 
73
#define CACHEW 128
 
74
#define CACHEH 64
 
75
 
 
76
extern unsigned cached_styles[CACHEH][CACHEW];
 
77
 
 
78
#endif /* _LYHASH_H_ */