[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Competition between dosname.h and filename.h
From: |
Akim Demaille |
Subject: |
Re: Competition between dosname.h and filename.h |
Date: |
Sat, 18 Aug 2018 18:02:43 +0200 |
> Le 18 août 2018 à 17:58, Bruno Haible <address@hidden> a écrit :
>
> Hi Akim,
Hi Bruno!
>> Those two files are really alike, maybe one of them should be phased out?
>
> Yes, this would likely be possible. But I'd say it's low priority,
> since the benefit is small.
Ok!
>> In Bison I had a clash on FILE_SYSTEM_PREFIX_LEN when including them
>> (actually, I did not include dosname.h, it is included by a bunch of
>> modules, including dirname.h).
>
> Can't you just include one of them (dirname.h or filename.h - pick the one
> you like best) instead of both?
Don’t worry about Bison, a simple #undef FILE_SYSTEM_PREFIX_LEN did what I
needed (I did not want to go through all the indirect inclusion to sort out
this issue). But more importantly, I threw away the patch that needed this, so
really, Bison is not an issue here. I just meant to report the incompatibility.
Thanks!