8 bit os_f handles
David J. Ruck
druck at freeuk.com
Wed Mar 29 02:21:17 BST 2000
On Wed 29 Mar, Jonathan Coxhead wrote:
>
> How about this instead: a big warning that says:
>
> A future version of FileSwitch may return handles >255. Any
> code that uses |os_f| will then behave unpredictably. To
> safeguard against this possibility, the new handle type |os_w|
> should be used instead. All existing FileSwitch calls that use
> |os_f| have been cloned with 32-bit versions whose name is the
> same as the 8-bit version with |_w| appended.
How about the more straight forward:
In previous versions of OSLib os_f was incorrectly defined
as an 8 bit quantity. This has now been fixed and os_f is
a 32 bit quantity conforming to the RISC OS API.
Before installing an using this version, check you code only
passes os_f to file functions, and you make no invalid casts between
os_f and byte wide variables, and dont rely on the previous size in
persistant structures. Performing these changes now is essential
to ensure your code contines to work with new versions of RISC OS.
All code must be fully recompiled and relinked in this version
as is the correct practice when installing ALL new libraries.
[Details on how to make a correct makefile]
---Dave
--
______________________________________________________________________
David J. Ruck Phone: 07974 108301 Email: druck at freeuk.com
______________________________________________________________________
More information about the oslib-user
mailing list