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

Function ppdMarkDefaults

cups/ppd-mark.c:490–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488 */
489
490void
491ppdMarkDefaults(ppd_file_t *ppd) /* I - PPD file record */
492{
493 int i; /* Looping variables */
494 ppd_group_t *g; /* Current group */
495 ppd_choice_t *c; /* Current choice */
496
497
498 if (!ppd)
499 return;
500
501 /*
502 * Clean out the marked array...
503 */
504
505 for (c = (ppd_choice_t *)cupsArrayFirst(ppd->marked);
506 c;
507 c = (ppd_choice_t *)cupsArrayNext(ppd->marked))
508 {
509 cupsArrayRemove(ppd->marked, c);
510 c->marked = 0;
511 }
512
513 /*
514 * Then repopulate it with the defaults...
515 */
516
517 for (i = ppd->num_groups, g = ppd->groups; i > 0; i --, g ++)
518 ppd_defaults(ppd, g);
519
520 /*
521 * Finally, tag any conflicts (API compatibility) once at the end.
522 */
523
524 ppdConflicts(ppd);
525}
526
527
528/*

Callers 15

get_optionsFunction · 0.85
load_ppd_attributesFunction · 0.85
load_ppdFunction · 0.85
mainFunction · 0.85
do_set_optionsFunction · 0.85
mainFunction · 0.85
SetCommonOptionsFunction · 0.85
mainFunction · 0.85
set_printer_optionsFunction · 0.85
list_optionsFunction · 0.85
check_defaultsFunction · 0.85
test_rasterFunction · 0.85

Calls 5

cupsArrayFirstFunction · 0.85
cupsArrayNextFunction · 0.85
cupsArrayRemoveFunction · 0.85
ppd_defaultsFunction · 0.85
ppdConflictsFunction · 0.85

Tested by 6

check_defaultsFunction · 0.68
test_rasterFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
do_ppd_testsFunction · 0.68