Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!snorkelwacker!apple!uokmax!d.cs.okstate.edu!minich From: minich@d.cs.okstate.edu (Robert Minich) Newsgroups: comp.sys.mac.programmer Subject: Re: Can THINK C support wider types than normal? Message-ID: <1990Oct1.020110.5069@d.cs.okstate.edu> Date: 1 Oct 90 02:01:10 GMT References: <6910@adobe.UUCP> Organization: Oklahoma State University Lines: 30 >>I know that THINK C uses 16 bit wide fields to store its int's and 32 >>for longs, I have a piece of software, however, that would REALLY like >>to see 32-bit wide int's and the other types that Sun computers >>support. > Add the following code to each of your files: > #ifdef THINK_C /* I think this is correct - check the manual */ > #define int long /* a typedef might work too */ > #endif This will probably fail when you do something like printf("%d", ) so you have to go in and be sure to fix all those dependencies. I don't know how difficult it would be but it would be REAL NICE (anyone at Symantec listening?) REAL REAL NICE if we could check a box in the copiler option dlog to change that. TC is sill a great compiler. I just want to see it get bettter. > -or- > revamp your entire code to abstract the int data type to something else, > so you never actually use int. This is probably the best way to go. > Steve Hawley > hawley@adobe.com -- |_ /| | Robert Minich | |\'o.O' | Oklahoma State University| A fanatic is one who sticks to |=(___)= | minich@d.cs.okstate.edu | his guns -- whether they are | U | - Ackphtth | loaded or not.