/[pspp]/pspp/src/postscript.c
ViewVC logotype

Diff of /pspp/src/postscript.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by blp, Tue Oct 25 04:28:17 2005 UTC revision 1.23 by blp, Wed Oct 26 05:06:14 2005 UTC
# Line 320  ps_preopen_driver (struct outp_driver *t Line 320  ps_preopen_driver (struct outp_driver *t
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;
# Line 1902  line (struct outp_driver *this, int type Line 1902  line (struct outp_driver *this, int type
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;
# Line 2735  text (struct outp_driver *this, struct o Line 2735  text (struct outp_driver *this, struct o
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                  }                  }

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26