version 1.28, 2011/01/01 17:10:20 |
version 1.30, 2011/01/02 20:34:05 |
|
|
|
|
static void print_mdoc(const struct mdoc_node *, int); |
static void print_mdoc(const struct mdoc_node *, int); |
static void print_man(const struct man_node *, int); |
static void print_man(const struct man_node *, int); |
static void print_span(const struct tbl_span *); |
static void print_span(const struct tbl_span *, int); |
|
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
Line 136 print_mdoc(const struct mdoc_node *n, int indent) |
|
Line 136 print_mdoc(const struct mdoc_node *n, int indent) |
|
/* NOTREACHED */ |
/* NOTREACHED */ |
} |
} |
|
|
for (i = 0; i < indent; i++) |
|
putchar('\t'); |
|
|
|
if (n->span) { |
if (n->span) { |
assert(NULL == p); |
assert(NULL == p); |
print_span(n->span); |
print_span(n->span, indent); |
} else { |
} else { |
|
for (i = 0; i < indent; i++) |
|
putchar('\t'); |
|
|
printf("%s (%s)", p, t); |
printf("%s (%s)", p, t); |
|
|
for (i = 0; i < (int)argc; i++) { |
for (i = 0; i < (int)argc; i++) { |
Line 228 print_man(const struct man_node *n, int indent) |
|
Line 228 print_man(const struct man_node *n, int indent) |
|
/* NOTREACHED */ |
/* NOTREACHED */ |
} |
} |
|
|
for (i = 0; i < indent; i++) |
|
putchar('\t'); |
|
|
|
if (n->span) { |
if (n->span) { |
assert(NULL == p); |
assert(NULL == p); |
print_span(n->span); |
print_span(n->span, indent); |
} else |
} else { |
|
for (i = 0; i < indent; i++) |
|
putchar('\t'); |
printf("%s (%s) %d:%d", p, t, n->line, n->pos); |
printf("%s (%s) %d:%d", p, t, n->line, n->pos); |
|
} |
|
|
putchar('\n'); |
putchar('\n'); |
|
|
Line 246 print_man(const struct man_node *n, int indent) |
|
Line 246 print_man(const struct man_node *n, int indent) |
|
} |
} |
|
|
static void |
static void |
print_span(const struct tbl_span *sp) |
print_span(const struct tbl_span *sp, int indent) |
{ |
{ |
const struct tbl_dat *dp; |
const struct tbl_dat *dp; |
|
const struct tbl_head *hp; |
|
int i; |
|
|
|
if (TBL_SPAN_FIRST & sp->flags) { |
|
for (i = 0; i < indent; i++) |
|
putchar('\t'); |
|
printf("tbl-head: "); |
|
for (hp = sp->head; hp; hp = hp->next) { |
|
printf("[%d]", hp->width); |
|
if (hp->next) |
|
putchar(' '); |
|
} |
|
putchar('\n'); |
|
} |
|
|
|
for (i = 0; i < indent; i++) |
|
putchar('\t'); |
|
|
printf("tbl: "); |
printf("tbl: "); |
|
|
switch (sp->pos) { |
switch (sp->pos) { |
Line 278 print_span(const struct tbl_span *sp) |
|
Line 295 print_span(const struct tbl_span *sp) |
|
default: |
default: |
break; |
break; |
} |
} |
printf("[%s]", dp->string); |
printf("[%s%s]", dp->string, dp->layout ? "" : "*"); |
if (dp->next) |
if (dp->next) |
putchar(' '); |
putchar(' '); |
} |
} |