version 1.20, 2015/01/30 17:31:20 |
version 1.21, 2015/10/06 18:30:44 |
|
|
if (*cp == ';') { |
if (*cp == ';') { |
tbl_option(tbl, ln, p, &pos); |
tbl_option(tbl, ln, p, &pos); |
if (p[pos] == '\0') |
if (p[pos] == '\0') |
return(ROFF_IGN); |
return ROFF_IGN; |
} |
} |
} |
} |
|
|
|
|
switch (tbl->part) { |
switch (tbl->part) { |
case TBL_PART_LAYOUT: |
case TBL_PART_LAYOUT: |
tbl_layout(tbl, ln, p, pos); |
tbl_layout(tbl, ln, p, pos); |
return(ROFF_IGN); |
return ROFF_IGN; |
case TBL_PART_CDATA: |
case TBL_PART_CDATA: |
return(tbl_cdata(tbl, ln, p, pos) ? ROFF_TBL : ROFF_IGN); |
return tbl_cdata(tbl, ln, p, pos) ? ROFF_TBL : ROFF_IGN; |
default: |
default: |
break; |
break; |
} |
} |
|
|
tbl_data(tbl, ln, p, pos); |
tbl_data(tbl, ln, p, pos); |
return(ROFF_TBL); |
return ROFF_TBL; |
} |
} |
|
|
struct tbl_node * |
struct tbl_node * |
|
|
tbl->part = TBL_PART_OPTS; |
tbl->part = TBL_PART_OPTS; |
tbl->opts.tab = '\t'; |
tbl->opts.tab = '\t'; |
tbl->opts.decimal = '.'; |
tbl->opts.decimal = '.'; |
return(tbl); |
return tbl; |
} |
} |
|
|
void |
void |
|
|
: tbl->first_span; |
: tbl->first_span; |
if (span) |
if (span) |
tbl->current_span = span; |
tbl->current_span = span; |
return(span); |
return span; |
} |
} |
|
|
int |
int |
|
|
if (sp == NULL) { |
if (sp == NULL) { |
mandoc_msg(MANDOCERR_TBLDATA_NONE, tbl->parse, |
mandoc_msg(MANDOCERR_TBLDATA_NONE, tbl->parse, |
tbl->line, tbl->pos, NULL); |
tbl->line, tbl->pos, NULL); |
return(0); |
return 0; |
} |
} |
return(1); |
return 1; |
} |
} |