8 #include <cups/language.h>
14 croak("%s not implemented on this architecture", s);
19 constant_PPD_M(char *name, int len, int arg)
25 switch (name[5 + 3]) {
27 if (strEQ(name + 5, "AX_LINE")) { /* PPD_M removed */
35 if (strEQ(name + 5, "AX_NAME")) { /* PPD_M removed */
43 if (strEQ(name + 5, "AX_TEXT")) { /* PPD_M removed */
60 constant_P(char *name, int len, int arg)
66 switch (name[1 + 3]) {
68 if (!strnEQ(name + 1,"PD_", 3))
70 return constant_PPD_M(name, len, arg);
72 if (strEQ(name + 1, "PD_VERSION")) { /* P removed */
89 constant_H(char *name, int len, int arg)
95 switch (name[1 + 8]) {
97 if (strEQ(name + 1, "TTP_MAX_BUFFER")) { /* H removed */
98 #ifdef HTTP_MAX_BUFFER
99 return HTTP_MAX_BUFFER;
105 if (strEQ(name + 1, "TTP_MAX_HOST")) { /* H removed */
107 return HTTP_MAX_HOST;
113 if (strEQ(name + 1, "TTP_MAX_URI")) { /* H removed */
121 if (strEQ(name + 1, "TTP_MAX_VALUE")) { /* H removed */
122 #ifdef HTTP_MAX_VALUE
123 return HTTP_MAX_VALUE;
138 constant_IPP_M(char *name, int len, int arg)
144 switch (name[5 + 3]) {
146 if (strEQ(name + 5, "AX_NAME")) { /* IPP_M removed */
154 if (strEQ(name + 5, "AX_VALUES")) { /* IPP_M removed */
155 #ifdef IPP_MAX_VALUES
156 return IPP_MAX_VALUES;
171 constant_I(char *name, int len, int arg)
177 switch (name[1 + 3]) {
179 if (!strnEQ(name + 1,"PP_", 3))
181 return constant_IPP_M(name, len, arg);
183 if (strEQ(name + 1, "PP_PORT")) { /* I removed */
200 constant_C(char *name, int len, int arg)
206 switch (name[1 + 4]) {
208 if (strEQ(name + 1, "UPS_DATE_ANY")) { /* C removed */
210 return CUPS_DATE_ANY;
216 if (strEQ(name + 1, "UPS_VERSION")) { /* C removed */
233 constant(char *name, int len, int arg)
236 switch (name[0 + 0]) {
238 return constant_C(name, len, arg);
240 return constant_H(name, len, arg);
242 return constant_I(name, len, arg);
244 return constant_P(name, len, arg);
255 MODULE = CUPS PACKAGE = CUPS
264 char * s = SvPV(sv, len);
267 RETVAL = constant(s,len,arg);