Lines Matching refs:name
57 this is a macro: name, arguments, contents, location.
61 char *name; /* lower case name of the macro */
82 hash type: (char *) name -> (ap_macro_t *) macro
124 what, cfg->line_number, cfg->name, ptr);
232 generates an error on macro with two arguments of the same name.
233 generates an error if a macro argument name is empty.
234 generates a warning if arguments name prefixes conflict.
250 "macro '%s' (%s): empty argument #%d name",
251 macro->name, macro->location, i + 1);
256 "argument name '%s' (#%d) without expected prefix, "
258 macro->name, macro->location,
265 /* must not use the same argument name twice */
268 "argument name conflict in macro '%s' (%s): "
271 macro->name, macro->location,
281 "argument name prefix conflict (%s #%d and %s #%d), "
283 macro->name, macro->location,
331 replace name by replacement at the beginning of buf of bufsize.
337 const char *name,
341 lname = strlen(name),
347 /* buf must starts with name */
348 ap_assert(!strncmp(buf, name, lname));
351 if (!strcmp(name, replacement))
356 buf, name, replacement, do_esc, shift, lbuf, lrepl, lsubs));
478 i + 1, macro->name, macro->location, errmsg);
505 macro->name, macro->location);
525 macro->name, macro->location, names[i], i + 1);
693 char *endp, *name, *where;
713 return BEGIN_MACRO " macro definition: empty name";
723 /* get lowercase macro name */
724 name = ap_getword_conf(pool, &arg);
725 if (empty_string_p(name)) {
726 return BEGIN_MACRO " macro definition: name not found";
729 ap_str_tolower(name);
730 macro = apr_hash_get(ap_macros, name, APR_HASH_KEY_STRING);
737 macro->name, macro->location,
738 cmd->config_file->line_number, cmd->config_file->name);
743 macro->name = name;
746 debug(fprintf(stderr, "macro_section: name=%s\n", name));
752 cmd->config_file->name);
756 apr_psprintf(pool, "macro '%s' (%s)", macro->name, macro->location);
758 if (looks_like_an_argument(name)) {
760 "%s better prefix a macro name with any of '%s'",
792 apr_hash_set(ap_macros, name, APR_HASH_KEY_STRING, macro);
798 handles: Use name value1 value2 ...
802 char *name, *recursion, *where;
815 /* get lowercase macro name */
816 name = ap_getword_conf(cmd->temp_pool, &arg);
817 ap_str_tolower(name);
819 if (empty_string_p(name)) {
820 return "no macro name specified with " USE_MACRO;
824 macro = apr_hash_get(ap_macros, name, APR_HASH_KEY_STRING);
827 return apr_psprintf(cmd->temp_pool, "macro '%s' undefined", name);
830 /* recursion is detected here by looking at the config file name,
833 * the name has just the needed visibility and liveness.
836 apr_pstrcat(cmd->temp_pool, "macro '", macro->name, "'", NULL);
838 if (ap_strstr((char *) cmd->config_file->name, recursion)) {
841 macro->name);
851 macro->name, macro->location,
857 macro->name, macro->location,
859 cmd->config_file->name);
883 char *name;
892 return "no macro name specified with " UNDEF_MACRO;
896 name = apr_pstrdup(cmd->temp_pool, arg);
897 ap_str_tolower(name);
898 macro = apr_hash_get(ap_macros, name, APR_HASH_KEY_STRING);
902 "cannot remove undefined macro '%s'", name);
907 apr_hash_set(ap_macros, name, APR_HASH_KEY_STRING, NULL);