lkml.org 
[lkml]   [2001]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: i386 cleanups


On Tue, 17 Apr 2001, Pavel Machek wrote:
>
> These are tiny cleanups you might like. sizes are "logically"
> long.

No. Sizes are not "logical". They are whatever you decide they are, ie
it's purely a complier convention.

At least earlier, size_t was defined as "unsigned int" in user mode, and
doing anything else would make gcc complain about clashes with its
compiled-in __builtin_size_t that it uses for the builtin prototypes (ie
if you had a declaration for "void *memcpy(void *dest, const void *src,
size_t n);" and your size_t didn't match the gcc builtin_size_t, you'd get
a "redefined with different arguments" warning or something).

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.040 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site