[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.52 and 1.55

version 1.52, 2011/08/16 12:23:51 version 1.55, 2014/01/05 19:10:56
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 97  static void    ps_growbuf(struct termp *, size_t);
Line 97  static void    ps_growbuf(struct termp *, size_t);
 static  void              ps_letter(struct termp *, int);  static  void              ps_letter(struct termp *, int);
 static  void              ps_pclose(struct termp *);  static  void              ps_pclose(struct termp *);
 static  void              ps_pletter(struct termp *, int);  static  void              ps_pletter(struct termp *, int);
   #if __GNUC__ - 0 >= 4
   __attribute__((__format__ (__printf__, 2, 3)))
   #endif
 static  void              ps_printf(struct termp *, const char *, ...);  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);
Line 488  pspdf_alloc(char *outopts)
Line 491  pspdf_alloc(char *outopts)
                         pagey = 356;                          pagey = 356;
                 } else if (2 != sscanf(pp, "%ux%u", &pagex, &pagey))                  } else if (2 != sscanf(pp, "%ux%u", &pagex, &pagey))
                         fprintf(stderr, "%s: Unknown paper\n", pp);                          fprintf(stderr, "%s: Unknown paper\n", pp);
         } else if (NULL == pp)          }
                 pp = "letter";  
   
         /*          /*
          * This MUST be defined before any PNT2AFM or AFM2PNT           * This MUST be defined before any PNT2AFM or AFM2PNT
Line 576  ps_printf(struct termp *p, const char *fmt, ...)
Line 578  ps_printf(struct termp *p, const char *fmt, ...)
         ps_growbuf(p, PS_BUFSLOP);          ps_growbuf(p, PS_BUFSLOP);
   
         pos = (int)p->ps->psmargcur;          pos = (int)p->ps->psmargcur;
         len = vsnprintf(&p->ps->psmarg[pos], PS_BUFSLOP, fmt, ap);          vsnprintf(&p->ps->psmarg[pos], PS_BUFSLOP, fmt, ap);
   
         va_end(ap);          va_end(ap);
   
Line 825  ps_begin(struct termp *p)
Line 827  ps_begin(struct termp *p)
                         ps_printf(p, "<<\n");                          ps_printf(p, "<<\n");
                         ps_printf(p, "/Type /Font\n");                          ps_printf(p, "/Type /Font\n");
                         ps_printf(p, "/Subtype /Type1\n");                          ps_printf(p, "/Subtype /Type1\n");
                         ps_printf(p, "/Name /F%zu\n", i);                          ps_printf(p, "/Name /F%d\n", i);
                         ps_printf(p, "/BaseFont /%s\n", fonts[i].name);                          ps_printf(p, "/BaseFont /%s\n", fonts[i].name);
                         ps_printf(p, ">>\n");                          ps_printf(p, ">>\n");
                 }                  }

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.55

CVSweb