delorie.com/archives/browse.cgi | search |
On Tue, 9 Jan 2007, Christopher Layne wrote: > extern "C" size_t > getpagesize () > { > if (!system_info.dwPageSize) > GetSystemInfo (&system_info); > return (size_t) system_info.dwAllocationGranularity; > } > > size_t > getsystempagesize () > { > if (!system_info.dwAllocationGranularity) > GetSystemInfo (&system_info); > return (size_t) system_info.dwPageSize; > } Um..., don't these functions look backward to anyone else in that the test for local cache initialization is not what gets returned. I know it really doesn't matter functionally, but it sure looks confusing ;-). -- Brian Ford Lead Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best safety device in any aircraft is a well-trained crew... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |