MCPcopy Create free account
hub / github.com/apache/httpd / mod_info_indent

Function mod_info_indent

modules/generators/mod_info.c:143–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142
143static 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(":&nbsp;", 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("&nbsp;&nbsp;", r);
178 else
179 apr_file_printf(out, " ");
180 }
181}
182
183static void mod_info_show_cmd(request_rec * r, const ap_directive_t * dir,
184 int nest)

Callers 3

mod_info_show_cmdFunction · 0.85
mod_info_show_openFunction · 0.85
mod_info_show_closeFunction · 0.85

Calls 5

get_fn_infoFunction · 0.85
ap_rprintfFunction · 0.85
set_fn_infoFunction · 0.85
ap_rputsFunction · 0.85
put_int_flush_rightFunction · 0.85

Tested by

no test coverage detected