summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2001-12-03 17:36:28 +0000
committerSimon Tatham <anakin@pobox.com>2001-12-03 17:36:28 +0000
commit5a5144c182a3d4436656150225fb9721711a62e4 (patch)
treeee0c1392a2452bbe200e8b121c86dfd6fad3f696
parenta299f41baa1242dea65fcddfc69b85286dbc2490 (diff)
downloadhalibut-5a5144c182a3d4436656150225fb9721711a62e4.zip
halibut-5a5144c182a3d4436656150225fb9721711a62e4.tar.gz
halibut-5a5144c182a3d4436656150225fb9721711a62e4.tar.bz2
halibut-5a5144c182a3d4436656150225fb9721711a62e4.tar.xz
Code cleanup
[originally from svn r1441]
-rw-r--r--winhelp.c7
-rw-r--r--winhelp.h3
2 files changed, 4 insertions, 6 deletions
diff --git a/winhelp.c b/winhelp.c
index a5520da..40f6ce5 100644
--- a/winhelp.c
+++ b/winhelp.c
@@ -10,11 +10,6 @@
/*
* Still to do:
*
- * - Code cleanups: prototype whlp_{start,end}_hyperlink in the
- * header file. Also decide whether context_hash is going to be
- * externally visible or not; if it is, rename it to
- * whlp_something and put it in the header file, and if not,
- * make it static.
* - nonbreaking spaces and hyphens will be needed.
* - tabs, and tab stop settings in the paragraphinfo.
*
@@ -315,7 +310,7 @@ static int idxleaf(const void *av, unsigned char *outbuf)
* This is the code to compute the hash of a context name. Copied
* straight from Winterhoff's documentation.
*/
-unsigned long context_hash(char *context)
+static unsigned long context_hash(char *context)
{
signed char bytemapping[256] =
"\x00\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF"
diff --git a/winhelp.h b/winhelp.h
index 60eccaa..d8f92e5 100644
--- a/winhelp.h
+++ b/winhelp.h
@@ -132,3 +132,6 @@ void whlp_begin_para(WHLP h, int para_type);
void whlp_end_para(WHLP h);
void whlp_set_font(WHLP h, int font_id);
void whlp_text(WHLP h, char *text);
+void whlp_start_hyperlink(WHLP h, WHLP_TOPIC target);
+void whlp_end_hyperlink(WHLP h);
+