There can be only one! (global.h)

Thiago Macieira thiago at kde.org
Mon Mar 6 22:09:17 CET 2006


Alexander Neundorf wrote:
>On Monday 06 March 2006 14:51, David Faure wrote:
>> On Monday 06 March 2006 14:00, Peter Kümmel wrote:
>> > Is kio/global.h that useful that it will be included without any
>> > other headers of kio? I just don't know.
>>
>> Yes. KIO::encodeFileName, KIO::decodeFileName, KIO::convertSize,
>> KIO::findCacheMountPoint etc.
>>
>> > > So what's the problem with declaring the problem fixed and moving
>> > > on? ;-))
>> >
>> > I've the impression it's not a good fix.
>>
>> kio/global.h has been around for more than 5 years and never created
>> trouble. The problem came from some wrong buildsystem file.
>
>Yes, but still it's a trap which one can run into. I'd also vote for
> making this really safe by renaming the headers to unique names.

Where possible, yes, simple names should be avoided.

base.h, client.h, server.h, etc.
That kind of name should be avoided.

However, properly prefixing it with a directory name should be safe:
myapp/base.h, for instance

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

1. On frumscafte, hwonne time_t wæs náht, se scieppend þone circolwyrde 
wundorcræftlíge cennede and seo eorðe wæs idel and hit wæs gód.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060307/13125de6/attachment-0001.pgp 


More information about the Kde-buildsystem mailing list