=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/term_ps.c,v retrieving revision 1.32 retrieving revision 1.33 diff -c -r1.32 -r1.33 *** src/usr.bin/mandoc/term_ps.c 2014/10/27 20:41:16 1.32 --- src/usr.bin/mandoc/term_ps.c 2014/10/28 17:35:42 1.33 *************** *** 1,4 **** ! /* $OpenBSD: term_ps.c,v 1.32 2014/10/27 20:41:16 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: term_ps.c,v 1.33 2014/10/28 17:35:42 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze *************** *** 101,107 **** static void ps_putchar(struct termp *, char); static void ps_setfont(struct termp *, enum termfont); static void ps_setwidth(struct termp *, int, size_t); ! static struct termp *pspdf_alloc(char *); static void pdf_obj(struct termp *, size_t); /* --- 101,107 ---- static void ps_putchar(struct termp *, char); static void ps_setfont(struct termp *, enum termfont); static void ps_setwidth(struct termp *, int, size_t); ! static struct termp *pspdf_alloc(const struct mchars *, char *); static void pdf_obj(struct termp *, size_t); /* *************** *** 502,530 **** }; void * ! pdf_alloc(char *outopts) { struct termp *p; ! if (NULL != (p = pspdf_alloc(outopts))) p->type = TERMTYPE_PDF; return(p); } void * ! ps_alloc(char *outopts) { struct termp *p; ! if (NULL != (p = pspdf_alloc(outopts))) p->type = TERMTYPE_PS; return(p); } static struct termp * ! pspdf_alloc(char *outopts) { struct termp *p; unsigned int pagex, pagey; --- 502,530 ---- }; void * ! pdf_alloc(const struct mchars *mchars, char *outopts) { struct termp *p; ! if (NULL != (p = pspdf_alloc(mchars, outopts))) p->type = TERMTYPE_PDF; return(p); } void * ! ps_alloc(const struct mchars *mchars, char *outopts) { struct termp *p; ! if (NULL != (p = pspdf_alloc(mchars, outopts))) p->type = TERMTYPE_PS; return(p); } static struct termp * ! pspdf_alloc(const struct mchars *mchars, char *outopts) { struct termp *p; unsigned int pagex, pagey; *************** *** 534,539 **** --- 534,540 ---- char *v; p = mandoc_calloc(1, sizeof(struct termp)); + p->symtab = mchars; p->enc = TERMENC_ASCII; p->ps = mandoc_calloc(1, sizeof(struct termp_ps));