diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2018-03-03 15:23:54 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2018-03-03 15:23:54 +0000 |
commit | f9d18278c5e94ae35d232412351f23de45d5c9c4 (patch) | |
tree | e596b40e20f12b4a3d9b6e3128422f8684202218 /src/LYHash.h | |
parent | 2095e86b2f479242f635b1a3fbd95b5f1ad0ab8f (diff) | |
download | lynx-snapshots-f9d18278c5e94ae35d232412351f23de45d5c9c4.tar.gz |
snapshot of project "lynx", label v2-8-9dev_16m
Diffstat (limited to 'src/LYHash.h')
-rw-r--r-- | src/LYHash.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/LYHash.h b/src/LYHash.h index e284eba6..93e6c050 100644 --- a/src/LYHash.h +++ b/src/LYHash.h @@ -1,4 +1,4 @@ -/* $LynxId: LYHash.h,v 1.25 2011/06/06 09:28:19 tom Exp $ */ +/* $LynxId: LYHash.h,v 1.31 2018/03/03 15:20:39 tom Exp $ */ #ifndef _LYHASH_H_ #define _LYHASH_H_ 1 @@ -9,23 +9,16 @@ #ifdef __cplusplus extern "C" { #endif - /* define OMIT_SCN_KEEPING to 1 to omit keeping of Style_className - * in HTML.c when lss support is on. 1 to increase performance. - */ -#define OMIT_SCN_KEEPING 0 - struct _hashbucket { + typedef struct { 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; + } bucket; #ifndef CSHASHSIZE -#define CSHASHSIZE 8193 +#define CSHASHSIZE 9973 /* Arbitrary prime. Memory/speed tradeoff */ #endif #define NOSTYLE -1 @@ -37,8 +30,8 @@ extern "C" { extern int hash_code(const char *string); extern bucket *nostyle_bucket(void); - extern int hash_code_lowercase_on_fly(const char *string); - extern int hash_code_aggregate_char(int c, int hash); + extern int hash_code_caseless(const char *string); + extern int hash_code_aggregate(const char *p, const char *q, const char *r); extern int hash_code_aggregate_lower_str(const char *c, int hash_was); extern int s_a; @@ -73,10 +66,6 @@ extern "C" { extern int s_sb_naa; #endif -#if OMIT_SCN_KEEPING - extern bucket *special_bucket(void); -#endif - #ifdef __cplusplus } #endif |