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

Function ppd_defaults

cups/ppd-mark.c:710–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708 */
709
710static void
711ppd_defaults(ppd_file_t *ppd, /* I - PPD file */
712 ppd_group_t *g) /* I - Group to default */
713{
714 int i; /* Looping var */
715 ppd_option_t *o; /* Current option */
716 ppd_group_t *sg; /* Current sub-group */
717
718
719 for (i = g->num_options, o = g->options; i > 0; i --, o ++)
720 if (_cups_strcasecmp(o->keyword, "PageRegion") != 0)
721 ppd_mark_option(ppd, o->keyword, o->defchoice);
722
723 for (i = g->num_subgroups, sg = g->subgroups; i > 0; i --, sg ++)
724 ppd_defaults(ppd, sg);
725}
726
727
728/*

Callers 1

ppdMarkDefaultsFunction · 0.85

Calls 2

_cups_strcasecmpFunction · 0.85
ppd_mark_optionFunction · 0.85

Tested by

no test coverage detected