> In your LibOpen routine, lock the global pointer and populate Var. Since
> you know the data that must go into Var, its a simple matter of assigning
> the values to the array. Its an extra step but it beats banging your head
> against a wall trying to figure out constants in structures especially
when
> you don't have access to global memory.
You are suggesting that Phillip write code like the following?
Err LibOpen(void)
{
struct LibGlobalData *dataP = ...;
dataP->var[0][0] = ...;
dataP->var[0][1] = ...;
dataP->var[0][2] = ...;
// And so on!
dataP->var[3][255] = ...;
// Whew! Finally!
}
Personally, I'd rather just use the "pcrelconstdata" pragma. It scales much
better, don't you think?
Eric W. Sirko
Softworks Solutions, LLC
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/