version 1.81, 2018/12/12 21:54:35 |
version 1.83, 2018/12/30 00:49:56 |
|
|
#include "mdoc.h" |
#include "mdoc.h" |
#include "man.h" |
#include "man.h" |
#include "tbl.h" |
#include "tbl.h" |
|
#include "eqn.h" |
#include "main.h" |
#include "main.h" |
|
|
static void print_box(const struct eqn_box *, int); |
static void print_box(const struct eqn_box *, int); |
Line 40 static void print_span(const struct tbl_span *, int); |
|
Line 41 static void print_span(const struct tbl_span *, int); |
|
|
|
|
|
void |
void |
tree_mdoc(void *arg, const struct roff_man *mdoc) |
tree_mdoc(void *arg, const struct roff_meta *mdoc) |
{ |
{ |
print_meta(&mdoc->meta); |
print_meta(mdoc); |
putchar('\n'); |
putchar('\n'); |
print_mdoc(mdoc->first->child, 0); |
print_mdoc(mdoc->first->child, 0); |
} |
} |
|
|
void |
void |
tree_man(void *arg, const struct roff_man *man) |
tree_man(void *arg, const struct roff_meta *man) |
{ |
{ |
print_meta(&man->meta); |
print_meta(man); |
if (man->meta.hasbody == 0) |
if (man->hasbody == 0) |
puts("body = empty"); |
puts("body = empty"); |
putchar('\n'); |
putchar('\n'); |
print_man(man->first->child, 0); |
print_man(man->first->child, 0); |