Typing
Tony van der Hoff
OSLib at mk-net.demon.co.uk
Wed Aug 9 08:50:39 BST 2000
On Tue, 8 Aug 2000, at 13:44:46, Chris Rutter
<chris at willow.armlinux.org> wrote on the subject "Typing":
>There are a number of slightly infelicitous types in OSLib; generally
>things that really should be `unsigned' or `size_t' are referred to as
>`int', when the items in question don't make sense as negative integers.
>
>Is there a policy on this anywhere?
>
Well, the general policy is, of course, that these should be unsigned
types. However, we are aware of some of these mis-castings, and in order
to avoid filling the library with new functions (as they would have to
be to preserve backwards compatibility), we've left them alone, unless
there's a specific problem.
The OSArgs extents are a specific example of this; They should be
unsigned, but no current file system returns 4Gb extents, so apart from
noting their existence, we're leaving them alone (for now).
Do you have a specific problem, and do you have a list of the errant
types you have encountered?
--
Tony van der Hoff | Mailto:tony at mk-net.demon.co.uk
| Mailto:avanderhoff at iee.org
Buckinghamshire, England | http:www.mk-net.demon.co.uk
More information about the oslib-user
mailing list