Lines Matching defs:cparam
833 ppd_cparam_t *cparam; /* Custom parameter */
839 if ((cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params)) == NULL)
842 switch (cparam->type)
847 cparam->current.custom_real = (float)_cupsStrScand(choice + 7,
852 cparam->current.custom_points = (float)_cupsStrScand(choice + 7,
859 cparam->current.custom_points *= 72.0f / 2.54f;
861 cparam->current.custom_points *= 72.0f / 25.4f;
863 cparam->current.custom_points *= 72.0f / 0.0254f;
865 cparam->current.custom_points *= 72.0f;
867 cparam->current.custom_points *= 12.0f * 72.0f;
872 cparam->current.custom_int = atoi(choice + 7);
878 if (cparam->current.custom_string)
879 _cupsStrFree(cparam->current.custom_string);
881 cparam->current.custom_string = _cupsStrAlloc(choice + 7);
900 ppd_cparam_t *cparam; /* Custom parameter */
916 if ((cparam = ppdFindCustomParam(coption, val->name)) == NULL)
919 switch (cparam->type)
924 cparam->current.custom_real = (float)_cupsStrScand(val->value,
929 cparam->current.custom_points = (float)_cupsStrScand(val->value,
936 cparam->current.custom_points *= 72.0f / 2.54f;
938 cparam->current.custom_points *= 72.0f / 25.4f;
940 cparam->current.custom_points *= 72.0f / 0.0254f;
942 cparam->current.custom_points *= 72.0f;
944 cparam->current.custom_points *= 12.0f * 72.0f;
949 cparam->current.custom_int = atoi(val->value);
955 if (cparam->current.custom_string)
956 _cupsStrFree(cparam->current.custom_string);
958 cparam->current.custom_string = _cupsStrRetain(val->value);