"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docheader.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).

docheader.c  (discount-2.2.4.tar.bz2):docheader.c  (discount-2.2.6.tar.bz2)
skipping to change at line 20 skipping to change at line 20
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>
#include "cstring.h" #include "cstring.h"
#include "markdown.h" #include "markdown.h"
#include "amalloc.h" #include "amalloc.h"
static char * static char *
onlyifset(Line *l) onlyifset(Line *l)
{ {
char *ret = T(l->text) + l->dle; char *ret;
if ( l->dle < 0 || l->dle >= S(l->text) )
return 0;
ret = T(l->text) + l->dle;
return ret[0] ? ret : 0; return ret[0] ? ret : 0;
} }
char * char *
mkd_doc_title(Document *doc) mkd_doc_title(Document *doc)
{ {
if ( doc && doc->title ) if ( doc && doc->title )
return onlyifset(doc->title); return onlyifset(doc->title);
return 0; return 0;
 End of changes. 1 change blocks. 
1 lines changed or deleted 6 lines changed or added

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