1 /* $NetBSD: html.h,v 1.1.1.1 2016/01/14 00:11:29 christos Exp $ */ 2 3 /* html.h -- declarations for html-related utilities. 4 Id: html.h,v 1.6 2004/11/30 02:03:23 karl Exp 5 6 Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation, Inc. 7 8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 2, or (at your option) 11 any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software Foundation, 20 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 21 22 #ifndef HTML_H 23 #define HTML_H 24 25 /* A stack of font tags. */ 26 typedef struct hstack 27 { 28 struct hstack *next; 29 char *tag; 30 char *attribs; 31 } HSTACK; 32 33 /* Nonzero if we have output the <head>. */ 34 extern int html_output_head_p; 35 36 /* Nonzero if we have output a title, from @titlefont or @settitle. */ 37 extern int html_title_written; 38 39 /* Perform the <head> output. */ 40 extern void html_output_head (void); 41 42 /* Escape &<>. */ 43 extern char *escape_string (char *); 44 45 /* Open or close TAG according to START_OR_END. */ 46 extern void insert_html_tag (int start_or_end, char *tag); 47 48 /* Output HTML <link> to NODE, plus extra ATTRIBUTES. */ 49 extern void add_link (char *nodename, char *attributes); 50 51 /* Escape URL-special characters. */ 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 */ 68