version 1.40, 1994/12/06 14:28:11
|
version 1.41, 1995/03/21 17:40:47
|
Line 16
|
Line 16
|
** |
** |
*/ |
*/ |
|
|
#include "sysdep.h" |
/* Library include files */ |
|
#include "tcp.h" |
#include "HTML.h" |
#include "HTUtils.h" |
|
#include "HTString.h" |
/* #define CAREFUL Check nesting here not really necessary */ |
|
|
|
#include "HTAtom.h" |
#include "HTAtom.h" |
#include "HTChunk.h" |
#include "HTChunk.h" |
#include "HText.h" |
#include "HText.h" |
#include "HTStyle.h" |
#include "HTStyle.h" |
|
|
#include "HTAlert.h" |
#include "HTAlert.h" |
#include "HTMLGen.h" |
#include "HTMLGen.h" |
#include "HTParse.h" |
#include "HTParse.h" |
|
#include "HTML.h" |
|
|
extern HTStyleSheet * styleSheet; /* Application-wide */ |
extern HTStyleSheet * styleSheet; /* Application-wide */ |
|
|
Line 629 PRIVATE void HTML_start_element ARGS4(
|
Line 627 PRIVATE void HTML_start_element ARGS4(
|
|
|
if (me->dtd->tags[element_number].contents!= SGML_EMPTY) { |
if (me->dtd->tags[element_number].contents!= SGML_EMPTY) { |
if (me->sp == me->stack) { |
if (me->sp == me->stack) { |
fprintf(stderr, "HTML: ****** Maximum nesting of %d exceded!\n", |
fprintf(TDEST, "HTML: ****** Maximum nesting of %d exceded!\n", |
MAX_NESTING); |
MAX_NESTING); |
return; |
return; |
} |
} |
Line 659 PRIVATE void HTML_end_element ARGS2(HTSt
|
Line 657 PRIVATE void HTML_end_element ARGS2(HTSt
|
{ |
{ |
#ifdef CAREFUL /* parser assumed to produce good nesting */ |
#ifdef CAREFUL /* parser assumed to produce good nesting */ |
if (element_number != me->sp[0].tag_number) { |
if (element_number != me->sp[0].tag_number) { |
fprintf(stderr, "HTMLText: end of element %s when expecting end of %s\n", |
fprintf(TDEST, "HTMLText: end of element %s when expecting end of %s\n", |
me->dtd->tags[element_number].name, |
me->dtd->tags[element_number].name, |
me->dtd->tags[me->sp->tag_number].name); |
me->dtd->tags[me->sp->tag_number].name); |
/* panic */ |
/* panic */ |
Line 817 PUBLIC HTStructured* HTML_new ARGS5(
|
Line 815 PUBLIC HTStructured* HTML_new ARGS5(
|
HTStream * intermediate = HTStreamStack(WWW_HTML, output_format, |
HTStream * intermediate = HTStreamStack(WWW_HTML, output_format, |
output_stream, request, NO); |
output_stream, request, NO); |
if (intermediate) return HTMLGenerator(intermediate); |
if (intermediate) return HTMLGenerator(intermediate); |
fprintf(stderr, "** Internal error: can't parse HTML to %s\n", |
fprintf(TDEST, "** Internal error: can't parse HTML to %s\n", |
HTAtom_name(output_format)); |
HTAtom_name(output_format)); |
exit (-99); |
exit (-99); |
} |
} |