summary refs log tree commit diff stats
path: root/COPYING
Commit message (Expand)AuthorAgeFilesLines
* Changed license to the GNU General Public Licensehut2010-02-281-13/+674
* added license informationhut2010-01-081-0/+13
id='n12' href='#n12'>12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
/*
 * $LynxId: HTMLDTD.h,v 1.32 2008/07/06 17:38:13 tom Exp $
 *
			      The HTML DTD -- software interface in libwww
			      HTML DTD - SOFTWARE INTERFACE

   SGML purists should excuse the use of the term "DTD" in this file to
   represent DTD-related information which is not exactly a DTD itself.

   The C modular structure doesn't work very well here, as the dtd is
   partly in the .h and partly in the .c which are not very independent.
   Tant pis.

 */
#ifndef HTMLDTD_H
#define HTMLDTD_H

#include <SGML.h>
#include <HTFont.h>

#ifdef __cplusplus
extern "C" {
#endif
/*
 *  Valid name chars for tag parsing.
 */
#define IsNmStart(c) (isalpha(UCH(c)))
#define IsNmChar(c) (isalnum(UCH(c)) || \
		      c == '_' || c=='-' || c == '.' || c==':')
#define ReallyEmptyTagNum(e) ((HTML_dtd.tags[e].contents == SGML_EMPTY) && \
			      !(HTML_dtd.tags[e].flags & Tgf_nreie))
#define ReallyEmptyTag(t) ((t->contents == SGML_EMPTY) && \
			   !(t->flags & Tgf_nreie))

#include <hdr_HTMLDTD.h>

#ifdef USE_PRETTYSRC
/* values of HTML attributes' types */
#define HTMLA_NORMAL 0		/* nothing specific */
#define HTMLA_ANAME  1		/* anchor name - 'id' or a's 'name' */
#define HTMLA_HREF   2		/* href */
#define HTMLA_CLASS  4		/* class name.  */
#define HTMLA_AUXCLASS 8	/* attribute, the value of which also designates
				   a class name */
#endif
    extern const SGML_dtd HTML_dtd;

    extern void HTSwitchDTD(int new_flag);

    extern HTTag HTTag_unrecognized;
    extern HTTag HTTag_mixedObject;

/*

Start anchor element

   It is kinda convenient to have a particular routine for starting an anchor
   element, as everything else for HTML is simple anyway.

  ON ENTRY

   targetstream points to a structured stream object.

   name and href point to attribute strings or are NULL if the attribute is
   to be omitted.

 */
    extern void HTStartAnchor(HTStructured * targetstream, const char *name,
			      const char *href);

    extern void HTStartAnchor5(HTStructured * targetstream, const char *name,
			       const char *href,
			       const char *linktype,
			       int tag_charset);

/*

Start IsIndex element - FM

   It is kinda convenient to have a particular routine for starting an IsIndex
   element with the prompt and/or href (action) attributes specified.

  ON ENTRY

   targetstream points to a structured stream object.

   prompt and href point to attribute strings or are NULL if the attribute is
   to be omitted.

 */
    extern void HTStartIsIndex(HTStructured * targetstream, const char *prompt,
			       const char *href);

#ifdef __cplusplus
}
#endif
#endif				/* HTMLDTD_H */