Re: # not in first column in many source headers

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jeffrey Goldberg
Fecha:  
A: Scotty Logan
Cc: Philip Hazel, exim-users
Asunto: Re: # not in first column in many source headers
On Wed, 29 Oct 1997, Scotty Logan wrote:

> Philip Hazel wrote


> > On Tue, 28 Oct 1997, Jeffrey Goldberg wrote:


> > > The first noticable problem is that many preprocessor directives
> > > have things [...] where the '#' is not in column one.
> >
> > I'm sorry. This is one point where I stick. Exim is written in ANSI C
> > (see under "Limitations").


As I told Philip in a private message that I agree with him (I hadn't
realized before that ANSI allowed '#' out of column 1).

> What's wrong with
>
> % find . -name '*.[ch]'|xargs perl -pi.bak -e 's/^( +)#/#$1/'


This is almost exactly what I did.

-j

--
Jeffrey Goldberg                +44 (0)1234 750 111 x 2826
 Cranfield Computer Centre      FAX         751 814
 J.Goldberg@???     http://WWW.Cranfield.ac.uk/public/cc/cc047/
Relativism is the triumph of authority over truth, convention over justice.



--
* This is sent by the exim-users mailing list.  To unsubscribe send a
    mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/