This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] dwarf2read.c: Don't assume uint32_t is unsigned int on all hosts.


On Thu, May 23, 2013 at 4:59 AM, Pedro Alves <palves@redhat.com> wrote:
> On 05/23/2013 06:53 AM, Joel Brobecker wrote:
>>> I don't mind much how it's implemented.  Remembering that there is
>>> puint32 for the purpose of printing uint32's will stick in my memory
>>> more than having to use pulongest.
>>
>> 'cannot believe I am saying this, but how about a puint32 macro
>> that just renames pulongest?
>
> If we ignore implementation details, can I take it you'd prefer
> the puint32 direction then?
>
> That means moving in the direction of ending up with
> puint8,puint16,puint32,puint64,pint8,pint16,pint32,pint64,
> pxint8,pxint16,pxint32,pxint64,etc.,etc.., right?
> Essentially, inttypes.h done differently.

[filed for reference sake]

I'd drop the 8 and 16 versions and just %d/%u.
[We can and do assume ints are not < 32 bits, and thus 8/16 will get promoted.]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]