bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Command line parsing of ls with genparse


From: John Cowan
Subject: Re: [PATCH] Command line parsing of ls with genparse
Date: Tue, 28 Aug 2007 16:42:26 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Eric Blake-1 scripsit:

> > 2. ls.c depends ls-clp.h (the generated parser)
> >    ls-clp.h depends on ls.gp (the genparse file)
> >    ls.gp depends on ls.c because ls.gp is embedded as a comment in ls.c
> >    -> There is a circular dependency!
> 
> That seems wrong to me.  Isn't it really:

Indeed.  People tend to believe that .c files depend on .h files
that they include, but in fact they don't; the .o file depends on
both the .c file and the .h file.  See "Recursive Make Considered
Harmful" for a discussion of this.

-- 
Eric Raymond is the Margaret Mead               John Cowan
of the Open Source movement.                    address@hidden
        --Bruce Perens,                         http://www.ccil.org/~cowan
          some years ago




reply via email to

[Prev in Thread] Current Thread [Next in Thread]