Using OSLib in relocatable modules
Simon Callan
simon at callan.demon.co.uk
Fri Apr 6 20:53:48 BST 2001
I'm currently playing around with the RISC OS port of Python, trying
to put it into a relocatable module. It does not look to difficult,
except for one problem.
The current port uses the following functions.
xdrawfile_render
xdraw_process_path
xosfile_create_dir
xosfile_load_stamped_no_path
xosfile_read_no_path
xosfile_read_stamped_no_path,
xosfile_save_stamped
xosfile_set_type
xosfile_stamp
xosfile_write_attr
xosfscontrol_canonicalise_path
xosfscontrol_dir
xosfscontrol_file_type_from_string
xosgbpb_dir_entries
xos_read_var_val
xos_set_var_val
xos_swi_number_from_string
As far as I am aware, there is no RM version of OSLib, and I was
wondering what is likely to be the best solution to this. As I see it,
there are 3 options
1) Rebuild OSLib for relocatable modules.
2) Copy the appropriate sources into the Python build structure, and
build them in RM mode.
3) Throw out all the OSLib functions, and recide using the raw SWIs.
I think 2 is likely to be the best, but what is recommended?
Simon
--
http://www.callan.demon.co.uk/simon/
More information about the oslib-user
mailing list