"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dumptree.c" between
discount-2.2.4.tar.bz2 and discount-2.2.6.tar.bz2

About: Discount is an implementation of the "Markdown" markup language (written in C).

dumptree.c  (discount-2.2.4.tar.bz2):dumptree.c  (discount-2.2.6.tar.bz2)
skipping to change at line 107 skipping to change at line 107
int count; int count;
Line *p; Line *p;
int d; int d;
static char *Begin[] = { 0, "P", "center" }; static char *Begin[] = { 0, "P", "center" };
while ( pp ) { while ( pp ) {
if ( !pp->next ) if ( !pp->next )
changepfx(sp, '`'); changepfx(sp, '`');
printpfx(sp, f); printpfx(sp, f);
d = fprintf(f, "[%s", Pptype(pp->typ)); if ( pp->typ == HDR )
d += fprintf(f, "[h%d", pp->hnumber);
else
d = fprintf(f, "[%s", Pptype(pp->typ));
if ( pp->ident ) if ( pp->ident )
d += fprintf(f, " %s", pp->ident); d += fprintf(f, " %s", pp->ident);
#ifdef GITHUB_CHECKBOX #ifdef GITHUB_CHECKBOX
if ( pp->flags ) if ( pp->flags )
d += fprintf(f, " %x", pp->flags); d += fprintf(f, " %x", pp->flags);
#endif #endif
if ( pp->align > 1 ) if ( pp->align > 1 )
d += fprintf(f, ", <%s>", Begin[pp->align]); d += fprintf(f, ", <%s>", Begin[pp->align]);
skipping to change at line 138 skipping to change at line 141
pushpfx(d, pp->down->next ? '+' : '-', sp); pushpfx(d, pp->down->next ? '+' : '-', sp);
dumptree(pp->down, sp, f); dumptree(pp->down, sp, f);
poppfx(sp); poppfx(sp);
} }
else fputc('\n', f); else fputc('\n', f);
pp = pp->next; pp = pp->next;
} }
} }
int int
mkd_dump(Document *doc, FILE *out, int flags, char *title) mkd_dump(Document *doc, FILE *out, mkd_flag_t flags, char *title)
{ {
Stack stack; Stack stack;
if (mkd_compile(doc, flags) ) { if (mkd_compile(doc, flags) ) {
CREATE(stack); CREATE(stack);
pushpfx(fprintf(out, "%s", title), doc->code->next ? '+' : '-', &stack); pushpfx(fprintf(out, "%s", title), doc->code->next ? '+' : '-', &stack);
dumptree(doc->code, &stack, out); dumptree(doc->code, &stack, out);
DELETE(stack); DELETE(stack);
 End of changes. 2 change blocks. 
2 lines changed or deleted 5 lines changed or added

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