bug-parted
[Top][All Lists]
Advanced

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

Re: compile problems


From: Arvin Schnell
Subject: Re: compile problems
Date: Sat, 1 Sep 2001 17:59:20 +0200 (CEST)

On Sat, 1 Sep 2001, Andrew Clausen wrote:

> On Fri, Aug 31, 2001 at 05:36:09PM +0200, Arvin Schnell wrote:
> >
> > Dear parted authors,
> >
> > I just want to say you that you shouldn't define
> > any variables beginning with two underscores, as
> > it is the case in parted 1.4.14 with all these
> > __s16, __u32 and so on.
>
> They are not variables ;)

You are right.

> If libc defines __s16, or whatever, I hope it defines them
> correctly ;)  I personally find uint64_t, etc. difficult to read.
> (Imagine you want to calculate the offset of a field quickly in
> your head...) __u64 is easy.
>
> Should I define them as u64_t or _u64 instead?

That't ok. Only names starting with two underscores and names
starting with an underscore and a uppercase letter are reserved.

> > Those names are reserved
> > for libc internal variables (and used on ia64).
> > I suggest to include <stdint.h> and use the
> > types defined there.
>
> I don't see how that could cause any problems.

The compiler complains about redefinitions.

ciao Arvin

> Thanks,
> Andrew
>

-- 
Dipl.-Phys. Arvin Schnell
email: address@hidden
tel: +49 911 74053-362




reply via email to

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