os_claim
Tony van der Hoff
OSLib at mk-net.demon.co.uk
Fri Dec 8 18:59:41 GMT 2000
Hi team,
I'm about to release 6.2 on its unsuspecting public, with an extensively
re-vamped StrongHelp manual, which is much easier to use (well, I like
it, anyway ;-).
However, if you've been following UseNet recently, you'll be aware of
the following infelicity:
Presently, os_claim is prototyped as:
os_claim( int vector, void const *routine, byte *handle );
I believe this is incorrect, and should be something like
os_claim( int vector, void (*routine)(void), byte *handle );
The same problem exists for os_release, os_change_environment and its
clients, and probably many others. I don't see any obvious way of
persuading DefMod to generate this syntax, so it probably isn't
possible.
Obviously, it's possible to cast the function pointer to an acceptable
type, but should we be putting some effort into fixing this, and if so,
any good suggestions as to how?
I also think that a vector type should be defined, and each one declared
as a const. Any comments?
--
Tony van der Hoff | mailto:OSLib at mk-net.demon.co.uk
Buckinghamshire, England | http://www.mk-net.demon.co.uk/oslib/
----------------------------------------------------------------
More information about the oslib-team
mailing list