On Tue, Oct 04, 2005 at 02:16:16PM -0500, William A. Rowe, Jr. wrote: > Actually I'm also confused, not by the fact that we resolve this test, > but exactly what it nets us.
It makes sure that a void * container can store the largest of the types we ocasionally place in such a container. It validates the assumption made by code which is in httpd right now. It should be taken out if/when the code making those assumptions are removed. In the meantime; if someone somehow managed to wheel out a rusty copy of TurboC for Dos, with the forever-brilliant "near", "far" and "huge" pointer-model, and then somehow again managed to get a configure script to use this compiler, it would fail here (a 16-bit pointer would be less than the 32-bit long) instead of probably about 20 lines further along the configure script ;) > Much more useful would be, as I mentioned before, a test with results > if sizeof int == sizeof void* then typedef ap_intptr_t int, > if sizeof long == sizeof void* then typedef ap_intptr_t long, > and we could have unsigned (ap_uintptr_t) of the same if anyone > supposes that's useful. This would be much better, though it's not just longs that we place in these pointer types, chars and ints get placed in them too. It's just all a lot more work, tracking down all of the instances, and adding new conditional typedef's for each one. Adreas' original patch just fixed the compiler warnings, these assignments have been in quite a while, and there are more to be found, no doubt. Does anyone have a tool which will But it is an utterly tedious near-pointless task, so it's kind of hard to be motivated to do it ;) -- Colm MacCárthaigh Public Key: [EMAIL PROTECTED]
