Upgrade Texinfo from 4.8 to 4.13 on the vendor branch
[dragonfly.git] / contrib / texinfo / makeinfo / html.h
1 /* html.h -- declarations for html-related utilities.
2    $Id: html.h,v 1.11 2008/05/19 18:26:48 karl Exp $
3
4    Copyright (C) 1999, 2000, 2002, 2004, 2007, 2008
5    Free Software Foundation, Inc.
6
7    This program is free software: you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation, either version 3 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19
20 #ifndef HTML_H
21 #define HTML_H
22
23 /* A stack of font tags.  */
24 typedef struct hstack
25 {
26   struct hstack *next;
27   char *tag;
28   char *attribs;
29 } HSTACK;
30
31 /* Nonzero if we have output a title, from @titlefont or @settitle.  */
32 extern int html_title_written;
33
34 /* Filename to which to write list of index entries, and stream for them */
35 extern char *internal_links_filename;
36 extern FILE *internal_links_stream;
37
38 /* Perform the <head> output.  */
39 extern void html_output_head (void);
40
41 /* Escape &<>.  */
42 extern char *escape_string (char *);
43
44 /* Open or close TAG according to START_OR_END.  */
45 extern void insert_html_tag (int start_or_end, char *tag);
46
47 /* Output HTML <link> to NODE, plus extra ATTRIBUTES.  */
48 extern void add_link (char *nodename, char *attributes);
49
50 /* Escape URL-special characters.  */
51 extern char *escaped_anchor_name (const char *name);
52 extern void add_escaped_anchor_name (char *name, int old);
53
54 /* See html.c.  */
55 extern void add_anchor_name (char *nodename, int href);
56 extern void add_url_name (char *nodename, int href);
57 extern void add_nodename_to_filename (char *nodename, int href);
58 extern char *nodename_to_filename (char *nodename);
59 extern int rollback_empty_tag (char *tag);
60
61 #if defined (VA_FPRINTF) && __STDC__
62 extern void insert_html_tag_with_attribute (int start_or_end, char *tag, char *format, ...);
63 #else
64 extern void insert_html_tag_with_attribute ();
65 #endif
66
67 #endif /* !HTML_H */