/[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.21 by blp, Sun Jul 31 21:42:46 2005 UTC revision 1.22 by blp, Tue Oct 25 04:28:17 2005 UTC
# Line 1488  quote_ps_name (char *dest, const char *s Line 1488  quote_ps_name (char *dest, const char *s
1488    const char *sp;    const char *sp;
1489    
1490    for (sp = string; *sp; sp++)    for (sp = string; *sp; sp++)
1491      switch (*(unsigned char *) sp)      switch (*sp)
1492        {        {
1493        case 'a':        case 'a':
1494        case 'f':        case 'f':
# Line 1563  quote_ps_name (char *dest, const char *s Line 1563  quote_ps_name (char *dest, const char *s
1563            *dp++ = '<';            *dp++ = '<';
1564            for (sp = string; *sp && dp < &dest[256]; sp++)            for (sp = string; *sp && dp < &dest[256]; sp++)
1565              {              {
1566                sprintf (dp, "%02x", *(unsigned char *) sp);                sprintf (dp, "%02x", (unsigned char) *sp);
1567                dp += 2;                dp += 2;
1568              }              }
1569            return stpcpy (dp, ">cvn");            return stpcpy (dp, ">cvn");
# Line 1588  quote_ps_string (char *dest, const char Line 1588  quote_ps_string (char *dest, const char
1588        dp = stpcpy (dp, "\\(");        dp = stpcpy (dp, "\\(");
1589      else if (*sp == ')')      else if (*sp == ')')
1590        dp = stpcpy (dp, "\\)");        dp = stpcpy (dp, "\\)");
1591      else if (*sp < 32 || *((unsigned char *) sp) > 127)      else if (*sp < 32 || (unsigned char) *sp > 127)
1592        dp = spprintf (dp, "\\%3o", *sp);        dp = spprintf (dp, "\\%3o", *sp);
1593      else      else
1594        *dp++ = *sp;        *dp++ = *sp;
# Line 2466  write_text (struct outp_driver *this, Line 2466  write_text (struct outp_driver *this,
2466            if (TEST_BIT (literal_chars[ext->data], cp->ch))            if (TEST_BIT (literal_chars[ext->data], cp->ch))
2467              *lp++ = cp->ch;              *lp++ = cp->ch;
2468            else            else
2469              switch (cp->ch)              switch ((char) cp->ch)
2470                {                {
2471                case '(':                case '(':
2472                  lp = stpcpy (lp, "\\(");                  lp = stpcpy (lp, "\\(");

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

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