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

Function warn_if_non_blank

modules/core/mod_macro.c:109–124  ·  view source on GitHub ↗

warn if anything non blank appears, but ignore comments... */

Source from the content-addressed store, hash-verified

107 warn if anything non blank appears, but ignore comments...
108*/
109static void warn_if_non_blank(const char * what,
110 char * ptr,
111 ap_configfile_t * cfg)
112{
113 char * p;
114 for (p=ptr; *p; p++) {
115 if (*p == '#')
116 break;
117 if (*p != ' ' && *p != '\t') {
118 ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL, APLOGNO(02989)
119 "%s on line %d of %s: %s",
120 what, cfg->line_number, cfg->name, ptr);
121 break;
122 }
123 }
124}
125
126/*
127 get read lines as an array till end_token.

Callers 2

get_lines_till_end_tokenFunction · 0.85
macro_sectionFunction · 0.85

Calls 1

ap_log_errorFunction · 0.50

Tested by

no test coverage detected