MCPcopy Create free account
hub / github.com/OpenPrinting/cups / ppdErrorString

Function ppdErrorString

cups/ppd.c:280–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 */
279
280const char * /* O - Status string */
281ppdErrorString(ppd_status_t status) /* I - PPD status */
282{
283 static const char * const messages[] =/* Status messages */
284 {
285 _("OK"),
286 _("Unable to open PPD file"),
287 _("NULL PPD file pointer"),
288 _("Memory allocation error"),
289 _("Missing PPD-Adobe-4.x header"),
290 _("Missing value string"),
291 _("Internal error"),
292 _("Bad OpenGroup"),
293 _("OpenGroup without a CloseGroup first"),
294 _("Bad OpenUI/JCLOpenUI"),
295 _("OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first"),
296 _("Bad OrderDependency"),
297 _("Bad UIConstraints"),
298 _("Missing asterisk in column 1"),
299 _("Line longer than the maximum allowed (255 characters)"),
300 _("Illegal control character"),
301 _("Illegal main keyword string"),
302 _("Illegal option keyword string"),
303 _("Illegal translation string"),
304 _("Illegal whitespace character"),
305 _("Bad custom parameter"),
306 _("Missing option keyword"),
307 _("Bad value string"),
308 _("Missing CloseGroup"),
309 _("Bad CloseUI/JCLCloseUI"),
310 _("Missing CloseUI/JCLCloseUI")
311 };
312
313
314 if (status < PPD_OK || status >= PPD_MAX_STATUS)
315 return (_cupsLangString(cupsLangDefault(), _("Unknown")));
316 else
317 return (_cupsLangString(cupsLangDefault(), messages[status]));
318}
319
320
321/*

Callers 15

load_ppd_attributesFunction · 0.85
add_printer_filtersFunction · 0.85
load_ppdFunction · 0.85
mainFunction · 0.85
do_am_printerFunction · 0.85
do_set_optionsFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
set_printer_optionsFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

_cupsLangStringFunction · 0.85
cupsLangDefaultFunction · 0.85

Tested by 6

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
do_ppd_testsFunction · 0.68
mainFunction · 0.68