/*
- * "$Id: ppd.c,v 1.86 2003/02/14 20:01:24 mike Exp $"
+ * "$Id: ppd.c,v 1.87 2003/02/14 20:12:53 mike Exp $"
*
* PPD file routines for the Common UNIX Printing System (CUPS).
*
if (line[0] != '*') /* All lines start with an asterisk */
{
- ppd_line --;
ppd_status = PPD_MISSING_ASTERISK;
return (0);
}
if (*lineptr <= ' ' || *lineptr > 126 || *lineptr == '/' ||
(keyptr - keyword) >= (PPD_MAX_NAME - 1))
{
- ppd_line --;
ppd_status = PPD_ILLEGAL_MAIN_KEYWORD;
return (0);
}
if (*lineptr <= ' ' || *lineptr > 126 ||
(optptr - option) >= (PPD_MAX_NAME - 1))
{
- ppd_line --;
ppd_status = PPD_ILLEGAL_OPTION_KEYWORD;
return (0);
}
if ((*lineptr < ' ' && *lineptr != '\t') ||
(textptr - text) >= (PPD_MAX_LINE - 1))
{
- ppd_line --;
ppd_status = PPD_ILLEGAL_TRANSLATION;
return (0);
}
/*
- * End of "$Id: ppd.c,v 1.86 2003/02/14 20:01:24 mike Exp $".
+ * End of "$Id: ppd.c,v 1.87 2003/02/14 20:12:53 mike Exp $".
*/