[MERGE] DirState pyrex helpers

Matthew D. Fuller fullermd at over-yonder.net
Thu Jul 19 02:32:15 BST 2007


On Wed, Jul 18, 2007 at 03:34:05PM -0500 I heard the voice of
John Arbash Meinel, and lo! it spake thus:
> 
> I've tried to track down an "official" definition, but GNU seems to
> have it as part of the compiler. I see stuff like:

It's almost certainly in header files somewhere, but it may take some
tracking down.

FreeBSD/i386 has:
typedef __uint32_t  __size_t;       /* sizeof() */

FreeBSD/amd64 has:
typedef __uint64_t  __size_t;       /* sizeof() */

(size_t becomes defined in terms of __size_t)


A Fedora/i386 box I can see has it defined back to unsigned int.


Certainly it's neither int nor long (it's size_t, after all), but it
should be able to hold the size of the largest possible
continuously-addressable block of memory.  On any currently-sane
platform, unsigned long would probably work.  Would be nice if it
could just learn it from the system headers and DTRT up the stack into
python...



-- 
Matthew Fuller     (MF4839)   |  fullermd at over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.



More information about the bazaar mailing list