Lines Matching defs:new

135     sei_cfg_rec *new = (sei_cfg_rec *) apr_palloc(p, sizeof(sei_cfg_rec));
137 new->conditionals = apr_array_make(p, 20, sizeof(sei_entry));
138 return (void *) new;
249 static const char *add_envvars(cmd_parms *cmd, const char *args, sei_entry *new)
264 apr_table_setn(new->features, var, feature);
267 apr_table_setn(new->features, var + 1, "!");
270 apr_table_setn(new->features, var, "1");
288 sei_entry *new;
316 new = &entries[i];
317 if (new->name && !strcasecmp(new->name, fname)) {
318 fname = new->name;
333 /* no match, create a new entry */
334 new = apr_array_push(sconf->conditionals);
335 new->name = fname;
336 new->regex = regex;
337 new->icase = icase;
339 new->pattern = apr_strmatch_precompile(cmd->pool,
341 if (new->pattern == NULL) {
345 new->preg = NULL;
348 new->preg = ap_pregcomp(cmd->pool, regex,
350 if (new->preg == NULL) {
354 new->pattern = NULL;
356 new->features = apr_table_make(cmd->pool, 2);
359 new->special_type = SPECIAL_REMOTE_ADDR;
362 new->special_type = SPECIAL_REMOTE_HOST;
365 new->special_type = SPECIAL_REQUEST_URI;
368 new->special_type = SPECIAL_REQUEST_METHOD;
371 new->special_type = SPECIAL_REQUEST_PROTOCOL;
374 new->special_type = SPECIAL_SERVER_ADDR;
377 new->special_type = SPECIAL_NOT;
380 * (new->pnamereg = NULL) to avoid the overhead of searching
384 new->pnamereg = ap_pregcomp(cmd->pool, fname,
387 if (new->pnamereg == NULL)
393 new->pnamereg = NULL;
398 new = &entries[i];
401 return add_envvars(cmd, args, new);
423 sei_entry *new;
442 new = apr_array_push(sconf->conditionals);
443 new->features = apr_table_make(cmd->pool, 2);
444 new->name = NULL;
445 new->regex = NULL;
446 new->pattern = NULL;
447 new->preg = NULL;
448 new->expr = ap_expr_parse_cmd(cmd, expr, 0, &err, NULL);
453 return add_envvars(cmd, args, new);