[comp.sys.apple2] ORCA/C Bugs, re typedef structs and/or misplaced globals

toddpw@nntp-server.caltech.edu (Todd P. Whitesel) (02/26/91)

Orca seems to be really sensitive about where you put your globals.
Try putting all your globals (except private statics) in the front of
each source file, after the headers but before the first function. I
do this all the time and it works reasonably well.

BEWARE OF USING GLOBAL STRUCTS. I've had the compiler generate totally
bogus code for accessing global structs directly (with .) -- if you auto
the struct or only access the elements through a pointer (as in -> ) then
it works fine.

Todd Whitesel
toddpw @ tybalt.caltech.edu