1
0
mirror of https://github.com/apache/httpd.git synced 2025-06-13 16:41:33 +03:00

Reconsidered the wisdom of this change... back to the drawing board.

The ap_ prefix is still good, IMHO


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
William A. Rowe Jr
2001-02-25 01:12:50 +00:00
parent 5cccb4a478
commit c96cc340bb
3 changed files with 19 additions and 2 deletions

View File

@ -935,8 +935,16 @@ AP_DECLARE(ap_configfile_t *) ap_pcfg_open_custom(apr_pool_t *p, const char *des
new_cfg->line_number = 0;
return new_cfg;
}
/* Read one character from a configfile_t */
AP_DECLARE(int) ap_cfg_getc(ap_configfile_t *cfp)
{
register int ch = cfp->getch(cfp->param);
if (ch == LF)
++cfp->line_number;
return ch;
}
/* Read one line from open ap_configfile_t, strip LF, increase line number */
/* If custom handler does not define a getstr() function, read char by char */
AP_DECLARE(int) ap_cfg_getline(char *buf, size_t bufsize, ap_configfile_t *cfp)