[net.micro.mac] Megamax C toolnames

stew@harvard.ARPA (Stew Rubenstein) (04/10/85)

I have fixed a bunch of bugs in the Megamax C header files.  They made a lot
of mistakes in capitalization, as well as misspellings and wrong type
declarations.  I am in the process of going through the header files
fairly carefully and will post diffs in a couple of days.  If anyone else has
fixed any header file bugs in Megamax C 2.0 and would like to consolidate
their known problems with mine, please send mail.

Also, I would like to create a list of lomem globals in the correct
format, such as

#define uTableBase (* (dCtlEntry ** (*) []) 0x11c)

i.e. 0x11c is a pointer to an array of dCtlEntry handles, dereferenced
for your convenience.  Then you can refer to things like
uTableBase[-1 - diskRefNum] to get the dCtlEntry handle for the sony
driver.  The question is, should these be #defines in the header files
as above, or should they be extern statements resolved by the linker?
If the latter, does anyone know how to create the object file (short of
writing a C program that knows about the object format in section 3.5 of
the manual) so that it can be included in syslib and automatically resolved?
-- 
-----------------------
Stew Rubenstein     UUCP: ihnp4!harvard!stew
Harvard Chemistry   ARPA: stew@harvard