From 5ef15d236a390f60d3bfb435325c6b40e3bfede2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20G=C3=B6hler?= Date: Sun, 17 Aug 2014 12:58:52 +0200 Subject: [PATCH] make header lines nameless --- include/markdown.h | 4 +--- markdown.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.20.1