summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-08 13:22:37 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-08 13:22:37 +0000
commit2c5f585a2fcbbdf1f0a016f3dd43a10b0c44be89 (patch)
tree100b8f186aa5f7b3b9847e4d0068ebf0501678a5 /main.c
parent69196d0244a29c4cfccc8628915ca17c3a84f164 (diff)
downloadmandoc-2c5f585a2fcbbdf1f0a016f3dd43a10b0c44be89.tar.gz
No functionality changes: just restructuring. Deprecated
terminal_free() in favour of ps_free() and ascii_free(). Moved ps_*() functions into term_ps.c so that they don't clutter up term.c.
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 19c47a25..ef3eceab 100644
--- a/main.c
+++ b/main.c
@@ -591,9 +591,11 @@ fdesc(struct curparse *curp)
break;
case (OUTT_ASCII):
curp->outdata = ascii_alloc(curp->outopts);
+ curp->outfree = ascii_free;
break;
case (OUTT_PS):
curp->outdata = ps_alloc();
+ curp->outfree = ps_free;
break;
default:
break;
@@ -616,7 +618,6 @@ fdesc(struct curparse *curp)
case (OUTT_PS):
curp->outman = terminal_man;
curp->outmdoc = terminal_mdoc;
- curp->outfree = terminal_free;
break;
default:
break;