grafthistory: comment about downloading the pack index
[elinks/elinks-j605.git] / src / document / docdata.c
blobcd0284e3e3d4b4798283ccd8183d2ac1179edb07
1 /* The document->data tools */
3 #ifdef HAVE_CONFIG_H
4 #include "config.h"
5 #endif
7 #include <stdlib.h>
9 #include "elinks.h"
11 #include "document/docdata.h"
12 #include "document/document.h"
13 #include "util/error.h"
16 struct line *
17 realloc_lines(struct document *document, int y)
19 assert(document);
20 if_assert_failed return NULL;
22 if (document->height <= y) {
23 if (!ALIGN_LINES(&document->data, document->height, y + 1))
24 return NULL;
26 document->height = y + 1;
29 return &document->data[y];