At 17:34 2003-1-14 -0500, you wrote:
I'm using CodeWarrior 6 I think. (About Box says IDE ver 4.0.1). If I declare some global data like this, how would the data be allocated?This would be an array of six pointers that live in the data section. Each pointer would point to a NUL-terminated character array also in the data section.
const char *gProviderHeaders2[6] = {
"Phone",
"City",
"State",
"Specialty One",
"Specialty Two",
"Specialty Three"
};
To allocate an array of strings in the code section, you would write something like:
const char gProviderHeaders3[][16] =
{
"Phone",
"City",
"State",
"Specialty One",
"Specialty Two",
"Specialty Three"
}
when "#pragma pcrelconstdata on" was active. This structure would be included in the code section, not the data section, and would only be directly accessible from code in the same segment as it.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
