MCPcopy Index your code
hub / github.com/apache/httpd / find_parent

Function find_parent

server/core.c:1287–1299  ·  view source on GitHub ↗

returns a parent if it matches the given directive */

Source from the content-addressed store, hash-verified

1285
1286/* returns a parent if it matches the given directive */
1287static 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
1301AP_DECLARE(const char *) ap_check_cmd_context(cmd_parms *cmd,
1302 unsigned forbidden)

Callers 1

ap_check_cmd_contextFunction · 0.85

Calls 1

ap_cstr_casecmpFunction · 0.85

Tested by

no test coverage detected