add line length and make it utf-8 compatible
[smdp.git] / markdown.c
index e578fa9..0d42005 100644 (file)
@@ -8,7 +8,7 @@ line_t *new_line() {
     line_t *x = malloc(sizeof(line_t));
     x->text = (void*)0;
     x->prev = x->next = (void*)0;
-    x->bits = x->offset = 0;
+    x->bits = x->length = x->offset = 0;
     return x;
 }
 
@@ -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;
 }