com32.h: cleanups, make OFFS_VALID() take the pointer size into account
authorH. Peter Anvin <hpa@zytor.com>
Wed, 10 Jun 2009 05:50:55 +0000 (22:50 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 10 Jun 2009 05:50:55 +0000 (22:50 -0700)
commit21e8f68b76dda9fa4dd8a70fcfe1d574cad37cc5
treeb0c0416c1fafe541dbe10a7aafd96211dd13ec95
parent87b70b32fadb057d9eabb81e4f1d57742217b590
com32.h: cleanups, make OFFS_VALID() take the pointer size into account

Clean up some of the constructs in com32.h, and make OFFS_VALID() take
the pointer type into account for the range check -- the whole object
needs to fit within the segment.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/include/com32.h