Is there any way I can statically initialize
global data for a shared library or a plugin?

For example, if I have a definition..
XYZType abc[2] = { { "X", "Y" }, {"a", "b"} };

Can access this from the plugin?

All other global data for this plugin is kept in
a "Globals" structure (malloced at __Startup) and
accessed through a 'Feature'. But if I do the 
same thing for abc[] array, I would have to
write code to copy each and every element in to
the array.
a = MemPtrNew(...);
a[1].str1 = "X";
a[2].str2 = "Y";  etc...
(NOTE: PC-relative strings option is used).



===
Ion Popescu
[EMAIL PROTECTED]

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to