/[pspp]/pspp/src/groff-font.c
ViewVC logotype

Diff of /pspp/src/groff-font.c

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

revision 1.12 by blp, Sun Jul 31 21:42:46 2005 UTC revision 1.13 by blp, Tue Oct 25 04:28:17 2005 UTC
# Line 406  font_msg (int class, const char *format, Line 406  font_msg (int class, const char *format,
406  static void  static void
407  scan_badchars (char *line, int len)  scan_badchars (char *line, int len)
408  {  {
409    unsigned char *cp = line;    char *cp = line;
410    
411    /* Same bad characters as Groff. */    /* Same bad characters as Groff. */
412    static unsigned char badchars[32] =    static unsigned char badchars[32] =
# Line 417  scan_badchars (char *line, int len) Line 417  scan_badchars (char *line, int len)
417      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
418    };    };
419    
420    for (; len--; cp++)    for (; len--; cp++)
421      if (badchars[*cp >> 3] & (1 << (*cp & 7)))      {
422        {        int c = (unsigned char) *cp;
423          font_msg (SE, _("Bad character \\%3o."), *cp);        if (badchars[c >> 3] & (1 << (c & 7)))
424          *cp = ' ';          {
425        }            font_msg (SE, _("Bad character \\%3o."), *cp);
426              *cp = ' ';
427            }
428        }
429  }  }
430    
431  /* Character name hashing. */  /* Character name hashing. */

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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