At least for OSX, a library that is opened with dlopen can't shadow symbols in the main binary. I think it would be better to simply use the same lookup mechanism as is used to implement the existing functions?
Also, a call to an explicit initialisation function would be useful. Right now I do my initialisation on the first call to the lookup function, but it feels a bit like a hack.
On 4 Jan, 2014 2:00 am, "Juergen Sauermann" <
address@hidden> wrote:
Hi,
I added the following (SVN 81)
1. if the left argument of ⎕FX contains no slash, then the pkglib directory will be
searched fo th e.so file
2. void (*start_input)() and void (*end_input)() function pointers added. These pointers
are 0 by default. When overridden by your own function(s) then these will be called
before and after GNU APL is blocked on input. That is, access to internal valriables is
safe from start_input() to end_input(). If you see start_input() then GNU APL will not call
end_input() before you send data (followed by \n) to the stdin of GNU APL.
3. fprintf() function added to the file_io module.
/// Jürgen