| 488 | */ |
| 489 | |
| 490 | void |
| 491 | ppdMarkDefaults(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 | /* |