version 1.35, 2015/01/30 00:29:30 |
version 1.36, 2015/01/30 02:09:04 |
Line 326 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, e |
|
Line 326 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, e |
|
struct tbl_cell *p, *pp; |
struct tbl_cell *p, *pp; |
struct tbl_head *h, *hp; |
struct tbl_head *h, *hp; |
|
|
p = mandoc_calloc(1, sizeof(struct tbl_cell)); |
p = mandoc_calloc(1, sizeof(*p)); |
|
|
if (NULL != (pp = rp->last)) { |
if ((pp = rp->last) != NULL) { |
pp->next = p; |
pp->next = p; |
h = pp->head->next; |
h = pp->head->next; |
} else { |
} else { |
Line 341 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, e |
|
Line 341 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, e |
|
|
|
/* Re-use header. */ |
/* Re-use header. */ |
|
|
if (h) { |
if (h != NULL) { |
p->head = h; |
p->head = h; |
return(p); |
return(p); |
} |
} |
|
|
hp = mandoc_calloc(1, sizeof(struct tbl_head)); |
hp = mandoc_calloc(1, sizeof(*hp)); |
hp->ident = tbl->opts.cols++; |
hp->ident = tbl->opts.cols++; |
|
|
if (tbl->last_head) { |
if (tbl->last_head != NULL) { |
hp->prev = tbl->last_head; |
hp->prev = tbl->last_head; |
tbl->last_head->next = hp; |
tbl->last_head->next = hp; |
} else |
} else |