| 141 | |
| 142 | |
| 143 | static void mod_info_indent(request_rec * r, int nest, |
| 144 | const char *thisfn, int linenum) |
| 145 | { |
| 146 | int i; |
| 147 | const char *prevfn = get_fn_info(r); |
| 148 | if (thisfn == NULL) |
| 149 | thisfn = "*UNKNOWN*"; |
| 150 | if (prevfn == NULL || 0 != strcmp(prevfn, thisfn)) { |
| 151 | if (r) { |
| 152 | thisfn = ap_escape_html(r->pool, thisfn); |
| 153 | ap_rprintf(r, "<dd><tt><strong>In file: %s</strong></tt></dd>\n", |
| 154 | thisfn); |
| 155 | } |
| 156 | else { |
| 157 | apr_file_printf(out, "# In file: %s\n", thisfn); |
| 158 | } |
| 159 | set_fn_info(r, thisfn); |
| 160 | } |
| 161 | |
| 162 | if (r) { |
| 163 | ap_rputs("<dd><tt>", r); |
| 164 | put_int_flush_right(r, linenum > 0 ? linenum : 0, 4); |
| 165 | ap_rputs(": ", r); |
| 166 | } |
| 167 | else if (linenum > 0) { |
| 168 | for (i = 1; i <= nest; ++i) |
| 169 | apr_file_printf(out, " "); |
| 170 | apr_file_putc('#', out); |
| 171 | put_int_flush_right(r, linenum, 4); |
| 172 | apr_file_printf(out, ":\n"); |
| 173 | } |
| 174 | |
| 175 | for (i = 1; i <= nest; ++i) { |
| 176 | if (r) |
| 177 | ap_rputs(" ", r); |
| 178 | else |
| 179 | apr_file_printf(out, " "); |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | static void mod_info_show_cmd(request_rec * r, const ap_directive_t * dir, |
| 184 | int nest) |
no test coverage detected