=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/term.h,v retrieving revision 1.27 retrieving revision 1.28 diff -c -r1.27 -r1.28 *** src/usr.bin/mandoc/term.h 2010/07/31 21:43:07 1.27 --- src/usr.bin/mandoc/term.h 2011/01/04 22:28:17 1.28 *************** *** 1,6 **** ! /* $Id: term.h,v 1.27 2010/07/31 21:43:07 schwarze Exp $ */ /* ! * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above --- 1,6 ---- ! /* $Id: term.h,v 1.28 2011/01/04 22:28:17 schwarze Exp $ */ /* ! * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above *************** *** 71,79 **** size_t pdfobjsz; /* size of pdfobjs */ }; struct termp { enum termtype type; ! size_t defrmargin; /* Right margin of the device.. */ size_t rmargin; /* Current right margin. */ size_t maxrmargin; /* Max right margin. */ size_t maxcols; /* Max size of buf. */ --- 71,85 ---- size_t pdfobjsz; /* size of pdfobjs */ }; + struct termp_tbl { + int width; /* width in fixed chars */ + int decimal; /* decimal point position */ + }; + struct termp { enum termtype type; ! struct termp_tbl *tbl; /* table configuration */ ! size_t defrmargin; /* Right margin of the device. */ size_t rmargin; /* Current right margin. */ size_t maxrmargin; /* Max right margin. */ size_t maxcols; /* Max size of buf. */ *************** *** 120,125 **** --- 126,132 ---- }; struct termp *term_alloc(enum termenc); + void term_tbl(struct termp *, const struct tbl_span *); void term_free(struct termp *); void term_newln(struct termp *); void term_vspace(struct termp *);