version 1.44, 2018/12/13 02:06:07 |
version 1.46, 2018/12/14 06:33:14 |
Line 88 tbl_read(struct tbl_node *tbl, int ln, const char *p, |
|
Line 88 tbl_read(struct tbl_node *tbl, int ln, const char *p, |
|
} |
} |
|
|
struct tbl_node * |
struct tbl_node * |
tbl_alloc(int pos, int line, struct mparse *parse, struct tbl_node *last_tbl) |
tbl_alloc(int pos, int line, struct tbl_node *last_tbl) |
{ |
{ |
struct tbl_node *tbl; |
struct tbl_node *tbl; |
|
|
Line 97 tbl_alloc(int pos, int line, struct mparse *parse, str |
|
Line 97 tbl_alloc(int pos, int line, struct mparse *parse, str |
|
last_tbl->next = tbl; |
last_tbl->next = tbl; |
tbl->line = line; |
tbl->line = line; |
tbl->pos = pos; |
tbl->pos = pos; |
tbl->parse = parse; |
|
tbl->part = TBL_PART_OPTS; |
tbl->part = TBL_PART_OPTS; |
tbl->opts.tab = '\t'; |
tbl->opts.tab = '\t'; |
tbl->opts.decimal = '.'; |
tbl->opts.decimal = '.'; |
|
|
tbl_restart(int line, int pos, struct tbl_node *tbl) |
tbl_restart(int line, int pos, struct tbl_node *tbl) |
{ |
{ |
if (tbl->part == TBL_PART_CDATA) |
if (tbl->part == TBL_PART_CDATA) |
mandoc_msg(MANDOCERR_TBLDATA_BLK, tbl->parse, |
mandoc_msg(MANDOCERR_TBLDATA_BLK, line, pos, "T&"); |
line, pos, "T&"); |
|
|
|
tbl->part = TBL_PART_LAYOUT; |
tbl->part = TBL_PART_LAYOUT; |
tbl->line = line; |
tbl->line = line; |
Line 170 tbl_end(struct tbl_node *tbl, int still_open) |
|
Line 168 tbl_end(struct tbl_node *tbl, int still_open) |
|
struct tbl_span *sp; |
struct tbl_span *sp; |
|
|
if (still_open) |
if (still_open) |
mandoc_msg(MANDOCERR_BLK_NOEND, tbl->parse, |
mandoc_msg(MANDOCERR_BLK_NOEND, tbl->line, tbl->pos, "TS"); |
tbl->line, tbl->pos, "TS"); |
|
else if (tbl->part == TBL_PART_CDATA) |
else if (tbl->part == TBL_PART_CDATA) |
mandoc_msg(MANDOCERR_TBLDATA_BLK, tbl->parse, |
mandoc_msg(MANDOCERR_TBLDATA_BLK, tbl->line, tbl->pos, "TE"); |
tbl->line, tbl->pos, "TE"); |
|
|
|
sp = tbl->first_span; |
sp = tbl->first_span; |
while (sp != NULL && sp->first == NULL) |
while (sp != NULL && sp->first == NULL) |
sp = sp->next; |
sp = sp->next; |
if (sp == NULL) { |
if (sp == NULL) { |
mandoc_msg(MANDOCERR_TBLDATA_NONE, tbl->parse, |
mandoc_msg(MANDOCERR_TBLDATA_NONE, tbl->line, tbl->pos, NULL); |
tbl->line, tbl->pos, NULL); |
|
return 0; |
return 0; |
} |
} |
return 1; |
return 1; |