[Top][All Lists]

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

Re: Why is stdint.h so little used?

From: Andrei Borzenkov
Subject: Re: Why is stdint.h so little used?
Date: Tue, 24 Jan 2017 10:35:58 +0300

On Tue, Jan 24, 2017 at 10:08 AM, Bjørn Forsman <address@hidden> wrote:
> On 24 January 2017 at 02:33, Vladimir 'phcoder' Serbinenko
> <address@hidden> wrote:
>> All files in posix_wrap are only for porting code to GRUB with little
>> modification. No GRUB-specific code should use it.
> That only explains half of it :-)
> What is better about writing grub_uint32_t instead of uint32_t? (To me
> it looks like a pointless indirection.)

GRUB boot time code is built without any standard headers at all, so
there is absolutely no difference between defining grub_uint32_t or
uint32_t, in both cases it must be defined in one of grub headers.
There is no indirection at all, because no uint32_t exists. For your
project you can add defines to avoid non-functional changes and then
simply do mass replace ones when porting is complete :)

reply via email to

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