[BACK]Return to term_ps.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/term_ps.c between version 1.67 and 1.68

version 1.67, 2014/10/27 20:41:58 version 1.68, 2014/10/28 17:36:19
Line 106  static void    ps_printf(struct termp *, const char *,
Line 106  static void    ps_printf(struct termp *, const char *,
 static  void              ps_putchar(struct termp *, char);  static  void              ps_putchar(struct termp *, char);
 static  void              ps_setfont(struct termp *, enum termfont);  static  void              ps_setfont(struct termp *, enum termfont);
 static  void              ps_setwidth(struct termp *, int, size_t);  static  void              ps_setwidth(struct termp *, int, size_t);
 static  struct termp     *pspdf_alloc(char *);  static  struct termp     *pspdf_alloc(const struct mchars *, char *);
 static  void              pdf_obj(struct termp *, size_t);  static  void              pdf_obj(struct termp *, size_t);
   
 /*  /*
Line 507  static const struct font fonts[TERMFONT__MAX] = {
Line 507  static const struct font fonts[TERMFONT__MAX] = {
 };  };
   
 void *  void *
 pdf_alloc(char *outopts)  pdf_alloc(const struct mchars *mchars, char *outopts)
 {  {
         struct termp    *p;          struct termp    *p;
   
         if (NULL != (p = pspdf_alloc(outopts)))          if (NULL != (p = pspdf_alloc(mchars, outopts)))
                 p->type = TERMTYPE_PDF;                  p->type = TERMTYPE_PDF;
   
         return(p);          return(p);
 }  }
   
 void *  void *
 ps_alloc(char *outopts)  ps_alloc(const struct mchars *mchars, char *outopts)
 {  {
         struct termp    *p;          struct termp    *p;
   
         if (NULL != (p = pspdf_alloc(outopts)))          if (NULL != (p = pspdf_alloc(mchars, outopts)))
                 p->type = TERMTYPE_PS;                  p->type = TERMTYPE_PS;
   
         return(p);          return(p);
 }  }
   
 static struct termp *  static struct termp *
 pspdf_alloc(char *outopts)  pspdf_alloc(const struct mchars *mchars, char *outopts)
 {  {
         struct termp    *p;          struct termp    *p;
         unsigned int     pagex, pagey;          unsigned int     pagex, pagey;
Line 539  pspdf_alloc(char *outopts)
Line 539  pspdf_alloc(char *outopts)
         char            *v;          char            *v;
   
         p = mandoc_calloc(1, sizeof(struct termp));          p = mandoc_calloc(1, sizeof(struct termp));
           p->symtab = mchars;
         p->enc = TERMENC_ASCII;          p->enc = TERMENC_ASCII;
         p->ps = mandoc_calloc(1, sizeof(struct termp_ps));          p->ps = mandoc_calloc(1, sizeof(struct termp_ps));
   

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68

CVSweb