"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "htmldoc/testhtml.cxx" between
htmldoc-1.9.11-source.tar.gz and htmldoc-1.9.12-source.tar.gz

About: HTMLDOC converts HTML and Markdown source files into indexed HTML, EPUB, PostScript, or PDF files (but doesn’t support CSS).

testhtml.cxx  (htmldoc-1.9.11-source):testhtml.cxx  (htmldoc-1.9.12-source)
skipping to change at line 199 skipping to change at line 199
} }
/* /*
* 'show_tree()' - Show the parsing tree... * 'show_tree()' - Show the parsing tree...
*/ */
static void static void
show_tree(tree_t *t, /* I - Parent node */ show_tree(tree_t *t, /* I - Parent node */
int indent) /* I - Indentation */ int indent) /* I - Indentation */
{ {
static const char * const markups[] =
{
"FILE",
"UNKNOWN",
"ERROR"
};
while (t) while (t)
{ {
if (t->markup == MARKUP_NONE) if (t->markup == MARKUP_NONE)
printf("%*s\"%s\"\n", indent, "", t->data); printf("%*s\"%s\"\n", indent, "", t->data);
else else if (t->markup > MARKUP_NONE)
printf("%*s%s\n", indent, "", _htmlMarkups[t->markup]); printf("%*s%s\n", indent, "", _htmlMarkups[t->markup]);
else
printf("%*s%s\n", indent, "", markups[t->markup - MARKUP_FILE]);
if (t->child) if (t->child)
show_tree(t->child, indent + 2); show_tree(t->child, indent + 2);
t = t->next; t = t->next;
} }
} }
#ifdef HAVE_LIBFLTK #ifdef HAVE_LIBFLTK
void void
 End of changes. 3 change blocks. 
1 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)