httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject Re: [PATCH] Config File Line Continuation
Date Sat, 28 Feb 1998 14:35:24 GMT
On Sat, Feb 28, 1998 at 03:11:36PM +0100, Ralf S. Engelschall wrote:
> +  *) Now all configuration files support Unix-style line-continuation via the
> +     trailing backslash ("\") character.  This enables us to write down
> +     complex or just very long directives in a more readable way.  

+1 on concept (yeah - I missed that feature too!). But...:

> +            while (cp > cbuf && isspace(*(cp-1)))
> +                cp--;
> +            if (cp > cbuf && *(cp-1) == '\\') {

This is non-unix-style: a trailing \ is a line continuation only if
nothing follows (not even whitespace).

Trailing Whitespace _might_ get stripped off after the '\\' test.

    Martin
-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message