All of lore.kernel.org
 help / color / mirror / Atom feed
* GRUB integral types? Why grub_uint32_t and not uint32_t?
@ 2008-05-29 15:57 Colin D Bennett
  2008-05-29 16:39 ` Robert Millan
  0 siblings, 1 reply; 2+ messages in thread
From: Colin D Bennett @ 2008-05-29 15:57 UTC (permalink / raw)
  To: grub-devel

I was wondering why it is necessary to use the integral types with
the "grub_" prefix instead of the standard uint32_t, int16_t, etc.?

It makes the most simple code much more verbose when we have to write
"grub_" so many times, and this seems like a case where it is not
needed.

Colin



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GRUB integral types? Why grub_uint32_t and not uint32_t?
  2008-05-29 15:57 GRUB integral types? Why grub_uint32_t and not uint32_t? Colin D Bennett
@ 2008-05-29 16:39 ` Robert Millan
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Millan @ 2008-05-29 16:39 UTC (permalink / raw)
  To: The development of GRUB 2

On Thu, May 29, 2008 at 08:57:56AM -0700, Colin D Bennett wrote:
> I was wondering why it is necessary to use the integral types with
> the "grub_" prefix instead of the standard uint32_t, int16_t, etc.?
> 
> It makes the most simple code much more verbose when we have to write
> "grub_" so many times, and this seems like a case where it is not
> needed.

It makes our code more consistent and less prone to errors.  This is more
relevant for freestanding code like GRUB than it'd be for a user program.

For an example, you can check the list archives and find how system headers
in different OSes break GRUB in different interesting and fun ways ;-)

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-29 16:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29 15:57 GRUB integral types? Why grub_uint32_t and not uint32_t? Colin D Bennett
2008-05-29 16:39 ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.