320 |
assert (this->driver_open == 0); |
assert (this->driver_open == 0); |
321 |
msg (VM (1), _("PostScript driver initializing as `%s'..."), this->name); |
msg (VM (1), _("PostScript driver initializing as `%s'..."), this->name); |
322 |
|
|
323 |
this->ext = x = xmalloc (sizeof (struct ps_driver_ext)); |
this->ext = x = xmalloc (sizeof *x); |
324 |
this->res = PSUS; |
this->res = PSUS; |
325 |
this->horiz = this->vert = 1; |
this->horiz = this->vert = 1; |
326 |
this->width = this->length = 0; |
this->width = this->length = 0; |
1902 |
if ((*f)->ndep >= (*f)->mdep) |
if ((*f)->ndep >= (*f)->mdep) |
1903 |
{ |
{ |
1904 |
(*f)->mdep += 16; |
(*f)->mdep += 16; |
1905 |
*f = xrealloc (*f, (sizeof **f + sizeof (int[2]) * ((*f)->mdep - 1))); |
*f = xrealloc (*f, sizeof **f + sizeof (int[2]) * ((*f)->mdep - 1)); |
1906 |
} |
} |
1907 |
(*f)->dep[(*f)->ndep][0] = dep1; |
(*f)->dep[(*f)->ndep][0] = dep1; |
1908 |
(*f)->dep[(*f)->ndep][1] = dep2; |
(*f)->dep[(*f)->ndep][1] = dep2; |
2735 |
} |
} |
2736 |
else |
else |
2737 |
{ |
{ |
2738 |
buf = xrealloc (buf, sizeof *buf * buf_len * 2); |
buf = xnrealloc (buf, buf_len * 2, sizeof *buf); |
2739 |
buf_loc = buf + buf_len; |
buf_loc = buf + buf_len; |
2740 |
buf_end = buf + buf_len * 2; |
buf_end = buf + buf_len * 2; |
2741 |
} |
} |