version 1.46, 2011/01/25 17:32:04 |
version 1.48, 2011/03/17 08:49:34 |
Line 366 ps_growbuf(struct termp *p, size_t sz) |
|
Line 366 ps_growbuf(struct termp *p, size_t sz) |
|
|
|
p->engine.ps.psmargsz += sz; |
p->engine.ps.psmargsz += sz; |
|
|
p->engine.ps.psmarg = realloc |
p->engine.ps.psmarg = mandoc_realloc |
(p->engine.ps.psmarg, |
(p->engine.ps.psmarg, |
p->engine.ps.psmargsz); |
p->engine.ps.psmargsz); |
|
|
if (NULL == p->engine.ps.psmarg) { |
|
perror(NULL); |
|
exit((int)MANDOCLEVEL_SYSERR); |
|
} |
|
} |
} |
|
|
static double ps_hspan(const struct termp *, |
static double ps_hspan(const struct termp *, |
Line 788 ps_begin(struct termp *p) |
|
Line 783 ps_begin(struct termp *p) |
|
|
|
if (TERMTYPE_PS == p->type) { |
if (TERMTYPE_PS == p->type) { |
ps_printf(p, "%%!PS-Adobe-3.0\n"); |
ps_printf(p, "%%!PS-Adobe-3.0\n"); |
ps_printf(p, "%%%%Creator: mandoc-%s\n", VERSION); |
|
ps_printf(p, "%%%%CreationDate: %s", ctime(&t)); |
ps_printf(p, "%%%%CreationDate: %s", ctime(&t)); |
ps_printf(p, "%%%%DocumentData: Clean7Bit\n"); |
ps_printf(p, "%%%%DocumentData: Clean7Bit\n"); |
ps_printf(p, "%%%%Orientation: Portrait\n"); |
ps_printf(p, "%%%%Orientation: Portrait\n"); |
Line 808 ps_begin(struct termp *p) |
|
Line 802 ps_begin(struct termp *p) |
|
ps_printf(p, "%%PDF-1.1\n"); |
ps_printf(p, "%%PDF-1.1\n"); |
pdf_obj(p, 1); |
pdf_obj(p, 1); |
ps_printf(p, "<<\n"); |
ps_printf(p, "<<\n"); |
ps_printf(p, "/Creator mandoc-%s\n", VERSION); |
|
ps_printf(p, ">>\n"); |
ps_printf(p, ">>\n"); |
ps_printf(p, "endobj\n"); |
ps_printf(p, "endobj\n"); |
|
|