From c3a38b374a5f4635f91f2b980e43da5b27e0d36a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 8 Jun 2010 13:22:37 +0000 Subject: 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. --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 949cddca..a9bec26b 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.85 2010/06/07 20:57:09 kristaps Exp $ */ +/* $Id: main.c,v 1.86 2010/06/08 13:22:37 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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; -- cgit v1.2.3