Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!ncar!asuvax!stjhmc!p12.f56.n114.z1.fidonet.org!Chris.Gehlker From: Chris.Gehlker@p12.f56.n114.z1.fidonet.org (Chris Gehlker) Newsgroups: comp.sys.mac.programmer Subject: Re: Think C Problem Message-ID: <30467.274B6655@stjhmc.fidonet.org> Date: 22 Nov 90 05:44:25 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:114/56.12 - AZ MAC UG, Phoenix AZ Lines: 24 physi-hf@garnet.berkeley.edu (Howard Haruo Fukuda) writes: > >>Poking around with Macsbug, I've found out that, Think C has put some of my > >>global variables for a DA at an odd numbered address. It then tries to copy > > > >>I guess as a last resort, I could rewrite it for MPW C, but I would like to > >>hear any more elegant solutions, especially since MPW C doesn't support > global >>variables in a DA like Think C does. THINK C defines str255 as: typedef unsigned char Str255[256]; I can't see why this shouldn't start at an odd address. BTW you can use globals in MPW. Check out TN 256. -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!56.12!Chris.Gehlker Internet: Chris.Gehlker@p12.f56.n114.z1.fidonet.org