#: 3505 S10/Tandy CoCo
15-May-90 01:03:53
Sb: #3445-#c-array initialization
Fm: Bob van der Poel 76510,2203
To: Bruce MacKenzie 71725,376 (X)
Bruce,
Yes, you're right on in what I am trying to do. I had considered data modules
before, but with the richness of C it seemed that there had to a simpler way.
After all,
char *foo="this is text"
does NOT force "this is a text" to the data area. All I need to do is to
substitute integer values for the string. But how?
BTW, I want to use this data to intialize some GET/PUT buffers. I guess another
way to do it would be to have the data in a file and send that to the buffers,
but having it all in the program makes things nice and clean. I got your datgen
file. I've not had a change to digest it yet, but it seems quite useful. You do
mention somewhere that data modules should be treated as ROM. Hmmm? I recall in
"The Rainbow OS9 ...." that they used data modules to store variable data.
Also, they can be used for interprocess communication. Don't really see why
not. Comments?
There is 1 Reply.
|