From: Michael Göhler Date: Sun, 17 Aug 2014 10:58:52 +0000 (+0200) Subject: make header lines nameless X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=5ef15d236a390f60d3bfb435325c6b40e3bfede2;p=smdp.git make header lines nameless --- diff --git a/include/markdown.h b/include/markdown.h index 28b48e0..ee6dff7 100644 --- a/include/markdown.h +++ b/include/markdown.h @@ -38,9 +38,7 @@ typedef struct _page_t { } page_t; typedef struct _document_t { - line_t *title; - line_t *author; - line_t *date; + line_t *header; page_t *page; } document_t; diff --git a/markdown.c b/markdown.c index e578fa9..90219e5 100644 --- a/markdown.c +++ b/markdown.c @@ -35,7 +35,7 @@ page_t *next_page(page_t *prev) { document_t *new_document() { document_t *x = malloc(sizeof(document_t)); - x->title = x->author = x->date = (void*)0; + x->header = (void*)0; x->page = (void*)0; return x; }