1 /** The document->data tools
12 #include "document/docdata.h"
13 #include "document/document.h"
14 #include "util/error.h"
18 realloc_lines(struct document
*document
, int y
)
21 if_assert_failed
return NULL
;
23 if (document
->height
<= y
) {
24 if (!ALIGN_LINES(&document
->data
, document
->height
, y
+ 1))
27 document
->height
= y
+ 1;
30 return &document
->data
[y
];