httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk.vanGulik" <Dirk.vanGu...@jrc.it>
Subject Re: Supporting line continuation in config files (fwd)
Date Mon, 17 Feb 1997 15:45:47 GMT
> From new-httpd-owner@apache.org Mon Feb 17 17:26:03 1997
> Delivered-To: new-httpd@qmail.hyperreal.com
> Mbox-Line: From new-httpd-owner@apache.org  Mon Feb 17 07:24:55 1997
> Date: Mon, 17 Feb 1997 10:24:47 -0500
> From: Chuck Murcko <chuck@topsail.org>
> To: new-httpd@hyperreal.com
> Subject: Re: Supporting line continuation in config files (fwd)
> 
> +1 for this idea. Real men's UNIX apps always allow line continuation in
> config files. 8^)

I like it; but is should be an isspace() I'd say and tread lf/cr/eof()
a bit more sensibly I'd say.

Dw.

> > 
> >         if(c == CR) {
> >             c = getc(f);
> >         }
> >         if(c == LF && i > 0 && s[i-1] == '\\') {
> >             c = ' ';
> >             if(--i > 0 && s[i-1] == c)
> >                 --i;            /* get rid of trailing whitespace */
> >             continue;           /* process escaped newline as space */
> >         }



Mime
View raw message