| 4225 | */ |
| 4226 | |
| 4227 | static int /* O - 1 to continue, 0 to stop */ |
| 4228 | token_cb(_ipp_file_t *f, /* I - IPP file data */ |
| 4229 | _ipp_vars_t *vars, /* I - IPP variables */ |
| 4230 | ipptool_test_t *data, /* I - Test data */ |
| 4231 | const char *token) /* I - Current token */ |
| 4232 | { |
| 4233 | char name[1024], /* Name string */ |
| 4234 | temp[1024], /* Temporary string */ |
| 4235 | value[1024], /* Value string */ |
| 4236 | *ptr; /* Pointer into value */ |
| 4237 | |
| 4238 | |
| 4239 | if (!token) |
| 4240 | { |
| 4241 | /* |
| 4242 | * Initialize state as needed (nothing for now...) |
| 4243 | */ |
| 4244 | |
| 4245 | return (1); |
| 4246 | } |
| 4247 | else if (f->attrs) |
| 4248 | { |
| 4249 | /* |
| 4250 | * Parse until we see a close brace... |
| 4251 | */ |
| 4252 | |
| 4253 | if (_cups_strcasecmp(token, "COUNT") && |
| 4254 | _cups_strcasecmp(token, "DEFINE-MATCH") && |
| 4255 | _cups_strcasecmp(token, "DEFINE-NO-MATCH") && |
| 4256 | _cups_strcasecmp(token, "DEFINE-VALUE") && |
| 4257 | _cups_strcasecmp(token, "DISPLAY-MATCH") && |
| 4258 | _cups_strcasecmp(token, "IF-DEFINED") && |
| 4259 | _cups_strcasecmp(token, "IF-NOT-DEFINED") && |
| 4260 | _cups_strcasecmp(token, "IN-GROUP") && |
| 4261 | _cups_strcasecmp(token, "OF-TYPE") && |
| 4262 | _cups_strcasecmp(token, "REPEAT-LIMIT") && |
| 4263 | _cups_strcasecmp(token, "REPEAT-MATCH") && |
| 4264 | _cups_strcasecmp(token, "REPEAT-NO-MATCH") && |
| 4265 | _cups_strcasecmp(token, "SAME-COUNT-AS") && |
| 4266 | _cups_strcasecmp(token, "WITH-ALL-VALUES") && |
| 4267 | _cups_strcasecmp(token, "WITH-ALL-HOSTNAMES") && |
| 4268 | _cups_strcasecmp(token, "WITH-ALL-RESOURCES") && |
| 4269 | _cups_strcasecmp(token, "WITH-ALL-SCHEMES") && |
| 4270 | _cups_strcasecmp(token, "WITH-DISTINCT-VALUES") && |
| 4271 | _cups_strcasecmp(token, "WITH-HOSTNAME") && |
| 4272 | _cups_strcasecmp(token, "WITH-RESOURCE") && |
| 4273 | _cups_strcasecmp(token, "WITH-SCHEME") && |
| 4274 | _cups_strcasecmp(token, "WITH-VALUE") && |
| 4275 | _cups_strcasecmp(token, "WITH-VALUE-FROM")) |
| 4276 | data->last_expect = NULL; |
| 4277 | |
| 4278 | if (_cups_strcasecmp(token, "DEFINE-MATCH") && |
| 4279 | _cups_strcasecmp(token, "DEFINE-NO-MATCH") && |
| 4280 | _cups_strcasecmp(token, "IF-DEFINED") && |
| 4281 | _cups_strcasecmp(token, "IF-NOT-DEFINED") && |
| 4282 | _cups_strcasecmp(token, "REPEAT-LIMIT") && |
| 4283 | _cups_strcasecmp(token, "REPEAT-MATCH") && |
| 4284 | _cups_strcasecmp(token, "REPEAT-NO-MATCH")) |
nothing calls this directly
no test coverage detected