diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-02 23:48:19 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-02 23:48:19 +0000 |
commit | 7355c805552e6fc47e10d976711b6169f0f3c0e0 (patch) | |
tree | 8ad95f5fc9d0dbda235694991290ea83f7484abe /man.c | |
parent | 9e6e3b6be0e9ffe29cf4876ce0b7ded2c3c386b9 (diff) | |
download | mandoc-7355c805552e6fc47e10d976711b6169f0f3c0e0.tar.gz |
Third step towards parser unification:
Replace struct mdoc_meta and struct man_meta by a unified struct roff_meta.
Written of the train from London to Exeter on the way to p2k15.
Diffstat (limited to 'man.c')
-rw-r--r-- | man.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -69,7 +69,7 @@ man_node(const struct man *man) return(man->first); } -const struct man_meta * +const struct roff_meta * man_meta(const struct man *man) { @@ -136,7 +136,7 @@ man_free1(struct man *man) if (man->first) man_node_delete(man, man->first); free(man->meta.title); - free(man->meta.source); + free(man->meta.os); free(man->meta.date); free(man->meta.vol); free(man->meta.msec); @@ -146,7 +146,7 @@ static void man_alloc1(struct man *man) { - memset(&man->meta, 0, sizeof(struct man_meta)); + memset(&man->meta, 0, sizeof(man->meta)); man->flags = 0; man->last = mandoc_calloc(1, sizeof(*man->last)); man->first = man->last; |