returns a parent if it matches the given directive */
| 1285 | |
| 1286 | /* returns a parent if it matches the given directive */ |
| 1287 | static const ap_directive_t * find_parent(const ap_directive_t *dirp, |
| 1288 | const char *what) |
| 1289 | { |
| 1290 | while (dirp->parent != NULL) { |
| 1291 | dirp = dirp->parent; |
| 1292 | |
| 1293 | /* ### it would be nice to have atom-ized directives */ |
| 1294 | if (ap_cstr_casecmp(dirp->directive, what) == 0) |
| 1295 | return dirp; |
| 1296 | } |
| 1297 | |
| 1298 | return NULL; |
| 1299 | } |
| 1300 | |
| 1301 | AP_DECLARE(const char *) ap_check_cmd_context(cmd_parms *cmd, |
| 1302 | unsigned forbidden) |
no test coverage detected