From 3ae295ca676ac0db275ad2cc1945fa0eca4a19bd Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 12 Jun 2004 20:09:40 +0000 Subject: Initial checkin of the shiny new rewritten-from-scratch HTML back end. There's a lot more _potentiality_ for new features than there are actual new features just yet, but future highlights include: configurable flavour of HTML (3.2, 4, XHTML Transitional or Strict), proper character set support (this is half way there already), and more flexible allocation of sections between multiple HTML files. Meanwhile, immediate benefits include correct handling of special characters within `author' and `description' strings, omission of the filename part in hyperlinks within the same HTML file (in particular, this means a single output file is now totally independent of its filename), and hyperlinks to the index from the top-level contents page (I'm amazed nobody has complained at the lack of this yet!). There are no doubt some shiny new bugs as well, but I'll never find them unless people start using the thing... [originally from svn r4275] --- halibut.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'halibut.h') diff --git a/halibut.h b/halibut.h index 934604a..62b87db 100644 --- a/halibut.h +++ b/halibut.h @@ -286,7 +286,8 @@ wchar_t *ustrncpy(wchar_t *dest, wchar_t const *source, int n); wchar_t utolower(wchar_t); int uisalpha(wchar_t); int ustrcmp(wchar_t *lhs, wchar_t *rhs); -int ustricmp(wchar_t *lhs, wchar_t *rhs); +int ustricmp(wchar_t const *lhs, wchar_t const *rhs); +int ustrnicmp(wchar_t const *lhs, wchar_t const *rhs, int maxlen); int utoi(wchar_t const *); double utof(wchar_t const *); int utob(wchar_t const *); @@ -463,10 +464,10 @@ void text_backend(paragraph *, keywordlist *, indexdata *, void *); paragraph *text_config_filename(char *filename); /* - * bk_xhtml.c + * bk_html.c */ -void xhtml_backend(paragraph *, keywordlist *, indexdata *, void *); -paragraph *xhtml_config_filename(char *filename); +void html_backend(paragraph *, keywordlist *, indexdata *, void *); +paragraph *html_config_filename(char *filename); /* * bk_whlp.c -- cgit v1.1