cons-discuss
[Top][All Lists]
Advanced

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

Re: #include's and Quoting


From: H. S. Teoh
Subject: Re: #include's and Quoting
Date: Thu, 6 Nov 2003 16:25:26 -0500
User-agent: Mutt/1.5.4i

On Thu, Nov 06, 2003 at 03:59:59PM -0500, Steve Jones wrote:
[snip]
> I'm referring to the requirement that I change all my:
> 
>   #include "blah.h"
> 
> lines to be
> 
>   #include <blah.h>
> 
> in order to use repository trees.
[snip]

Oh, I see. Well, I'm not familiar enough with the Cons code to tell you if
there's a workaround for this; but from a cursory glance at the
documentation, this problem is caused by the way the C preprocessor
searches for include files. As such, it seems to be an inherent problem
that might be difficult to workaround in Cons.

I'll leave it to other listmembers to say whether or not it's possible to
do this.

One method might be to write a Perl script that recurses through your
source tree and replace all
        #include "..."
with
        #include <...>

Of course, you may have to build some additional conditions into it so
that it only changes relevant lines; this is just an idea off the top of
my head about how you might be able to solve the problem.


T

-- 
Nothing in the world is more distasteful to a man than to take the path that
leads to himself. -- Herman Hesse




reply via email to

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