/*
- * "$Id: ppd.c,v 1.90 2003/02/18 22:23:38 mike Exp $"
+ * "$Id: ppd.c,v 1.91 2003/02/18 22:43:06 mike Exp $"
*
* PPD file routines for the Common UNIX Printing System (CUPS).
*
"OK",
"Unable to open PPD file",
"NULL PPD file pointer",
- "Missing PPD-Adobe-4.x header",
"Memory allocation error",
+ "Missing PPD-Adobe-4.x header",
"Missing value string",
"Internal error",
"Bad OpenGroup",
/*
- * End of "$Id: ppd.c,v 1.90 2003/02/18 22:23:38 mike Exp $".
+ * End of "$Id: ppd.c,v 1.91 2003/02/18 22:43:06 mike Exp $".
*/
/*
- * "$Id: ppd.h,v 1.31 2003/02/18 22:23:38 mike Exp $"
+ * "$Id: ppd.h,v 1.32 2003/02/18 22:43:07 mike Exp $"
*
* PostScript Printer Description definitions for the Common UNIX Printing
* System (CUPS).
PPD_OK = 0, /* OK */
PPD_FILE_OPEN_ERROR, /* Unable to open PPD file */
PPD_NULL_FILE, /* NULL PPD file pointer */
- PPD_MISSING_PPDADOBE4, /* Missing PPD-Adobe-4.x header */
PPD_ALLOC_ERROR, /* Memory allocation error */
+ PPD_MISSING_PPDADOBE4, /* Missing PPD-Adobe-4.x header */
PPD_MISSING_VALUE, /* Missing value string */
PPD_INTERNAL_ERROR, /* Internal error */
PPD_BAD_OPEN_GROUP, /* Bad OpenGroup */
#endif /* !_CUPS_PPD_H_ */
/*
- * End of "$Id: ppd.h,v 1.31 2003/02/18 22:23:38 mike Exp $".
+ * End of "$Id: ppd.h,v 1.32 2003/02/18 22:43:07 mike Exp $".
*/
/*
- * "$Id: printers.c,v 1.138 2003/02/14 20:09:15 mike Exp $"
+ * "$Id: printers.c,v 1.139 2003/02/18 22:43:07 mike Exp $"
*
* Printer routines for the Common UNIX Printing System (CUPS).
*
pstatus = ppdLastError(&pline);
LogMessage(L_ERROR, "PPD file for %s cannot be loaded!", p->name);
- LogMessage(L_ERROR, "%s on line %d.", ppdErrorString(pstatus),
- pline);
+
+ if (pstatus <= PPD_ALLOC_ERROR)
+ LogMessage(L_ERROR, "%s", strerror(errno));
+ else
+ LogMessage(L_ERROR, "%s on line %d.", ppdErrorString(pstatus),
+ pline);
AddPrinterFilter(p, "application/vnd.cups-postscript 0 -");
}
/*
- * End of "$Id: printers.c,v 1.138 2003/02/14 20:09:15 mike Exp $".
+ * End of "$Id: printers.c,v 1.139 2003/02/18 22:43:07 mike Exp $".
*/
/*
- * "$Id: cupstestppd.c,v 1.10 2003/02/18 22:23:39 mike Exp $"
+ * "$Id: cupstestppd.c,v 1.11 2003/02/18 22:43:09 mike Exp $"
*
* PPD test program for the Common UNIX Printing System (CUPS).
*
{
error = ppdLastError(&line);
- if (error <= PPD_NULL_FILE || error == PPD_ALLOC_ERROR)
+ if (error <= PPD_ALLOC_ERROR)
{
status = ERROR_FILE_OPEN;
/*
- * End of "$Id: cupstestppd.c,v 1.10 2003/02/18 22:23:39 mike Exp $".
+ * End of "$Id: cupstestppd.c,v 1.11 2003/02/18 22:43:09 mike Exp $".
*/