about summary refs log tree commit diff stats
path: root/src/LYHash.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2011-06-11 13:06:08 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2011-06-11 13:06:08 -0400
commitf06f1fc3d95167ec780cb0963548f2afdd548b20 (patch)
tree6c12f0dea0a3c860994a46c37d7f32336d39d7db /src/LYHash.h
parent279010bc0791556e63b4951d83a2c45252142b80 (diff)
downloadlynx-snapshots-f06f1fc3d95167ec780cb0963548f2afdd548b20.tar.gz
snapshot of project "lynx", label v2-8-8dev_8m
Diffstat (limited to 'src/LYHash.h')
-rw-r--r--src/LYHash.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/LYHash.h b/src/LYHash.h
new file mode 100644
index 00000000..e284eba6
--- /dev/null
+++ b/src/LYHash.h
@@ -0,0 +1,83 @@
+/* $LynxId: LYHash.h,v 1.25 2011/06/06 09:28:19 tom Exp $ */
+#ifndef _LYHASH_H_
+#define _LYHASH_H_ 1
+
+#ifndef HTUTILS_H
+#include <HTUtils.h>
+#endif
+
+#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 {
+	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;
+
+#ifndef CSHASHSIZE
+#define CSHASHSIZE 8193
+#endif
+
+#define NOSTYLE -1
+
+    /* hashStyles[] is used in CTRACE when NOSTYLE is passed as 'style' to
+     * curses_w_style
+     */
+    extern bucket hashStyles[CSHASHSIZE];
+    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_aggregate_lower_str(const char *c, int hash_was);
+
+    extern int s_a;
+    extern int s_aedit;
+    extern int s_aedit_arr;
+    extern int s_aedit_pad;
+    extern int s_aedit_sel;
+    extern int s_alert;
+    extern int s_alink;
+    extern int s_curedit;
+    extern int s_forw_backw;
+    extern int s_hot_paste;
+    extern int s_menu_active;
+    extern int s_menu_bg;
+    extern int s_menu_entry;
+    extern int s_menu_frame;
+    extern int s_menu_number;
+    extern int s_menu_sb;
+    extern int s_normal;
+    extern int s_prompt_edit;
+    extern int s_prompt_edit_arr;
+    extern int s_prompt_edit_pad;
+    extern int s_prompt_sel;
+    extern int s_status;
+    extern int s_title;
+    extern int s_whereis;
+
+#ifdef USE_SCROLLBAR
+    extern int s_sb_aa;
+    extern int s_sb_bar;
+    extern int s_sb_bg;
+    extern int s_sb_naa;
+#endif
+
+#if OMIT_SCN_KEEPING
+    extern bucket *special_bucket(void);
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+#endif				/* _LYHASH_H_ */