Commit d82d8edb authored by Doug MacEachern's avatar Doug MacEachern
Browse files

ap_getline() is useful to modules outside of the core..

change declaration from AP_CORE_DECLARE to AP_DECLARE so it can be used
used outside the core
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91778 13f79535-47bb-0310-9956-ffa450edef68
parent dd98faa0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -526,7 +526,7 @@ AP_DECLARE(int) ap_get_basic_auth_pw(request_rec *r, const char **pw);
 */
AP_CORE_DECLARE(void) ap_parse_uri(request_rec *r, const char *uri);

AP_CORE_DECLARE(int) ap_getline(char *s, int n, request_rec *r, int fold);
AP_DECLARE(int) ap_getline(char *s, int n, request_rec *r, int fold);

/**
 * Get the method number associated with the given string, assumed to
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@ AP_DECLARE(apr_time_t) ap_rationalize_mtime(request_rec *r, apr_time_t mtime)
 *        If no LF is detected on the last line due to a dropped connection 
 *        or a full buffer, that's considered an error.
 */
AP_CORE_DECLARE(int) ap_getline(char *s, int n, request_rec *r, int fold)
AP_DECLARE(int) ap_getline(char *s, int n, request_rec *r, int fold)
{
    char *pos = s;
    char *last_char;