Hello.
I am trying to implement existing C library as a collection of shared
libraries. Problem with this approach is that all calls to shared
library functions must have library reference number as first
parameter. Since all shared library calls are implemented as system
traps, there should be no real reason for including library reference
number, if I don't use any globals. I tried to do small library based
on SampleLib project from Palm, but my program crashed when calling
function from library. Then I compiled SampleLibraryApp that came with
SampleLib project and it chrashed too, so not including reference number
in parameter list might not be the cause of my problems.
I'd prefer not to have reference numbers because this would mean that I
will have to change lot of existing code.
Anyway, is it possible to have shared library functions without
reference number and if so, could anyone send me some working piece of
code that implements shared library and program that calls it?
--
Margus