At 03:59 PM 9/12/2001 -0700, Benjamin Stuhl wrote:
>--- Andy Dougherty <[EMAIL PROTECTED]>
>wrote:
> > In perl5, we've had occasional header file name conflicts
> > over the
> > years. One common example is someone putting a file
> > named "config.h"
> > in /usr/local/include. Other conflicts with "string.h"
> > and "memory.h"
> > are also conceivable.
Yep, those two are definitely worrisome, as are some of the others.
(Stack.h, registers.h...)
> > I'd suggest
> >
> > cd parrot
> > mkdir include
> > mkdir include/parrot
> > mv *.h include/parrot
> >
> > changing parrot.h to do #include "parrot/config.h" and
> > then changing
> > Makefile to add -I./include to CCFLAGS.
>
>YES!!! This is something I've wanted to do to Perl5 for
>years, but we can't because every XS module in the world
>expects the headers to be at the root. We should
>_definitely_ do this -- the fewer namespaces we pollute,
>the better.
One thing to keep in mind is that the directory may not be sufficient on
some platforms. VMS, specifically, ignores the directory portion of the
include filename. (And the suffix, generally, but that's separate)
Not, mind, that I'm proposing prepending parrot_ to all the filenames,
though that's an option certainly.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk