home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!relay!relay2!afterlife!mssmith
- From: mssmith@afterlife.ncsc.mil (M. Scott Smith)
- Newsgroups: comp.sys.mac.programmer
- Subject: Think Pascal->C conversion -- advice?
- Message-ID: <1992Dec18.021125.23146@afterlife.ncsc.mil>
- Date: 18 Dec 92 02:11:25 GMT
- Organization: The Great Beyond
- Lines: 27
-
-
- Hi..
-
- I'm in the process of converting a large, complex program written with
- Think Pascal to Think C. I'm pretty fluent in both Pascal and C, and
- programming the Mac, but I was curious if anyone else has done this and
- what types of problems they ran into, or what types of things I should be
- careful about.
-
- I am not the primary author of this code, so I'm not very familiar with
- it, which puts me at a disadvantage. It's also quite large.
-
- Some things I see that might be a problem are translating things such as
- packed arrays of boolean (in Pascal, which I believe are 1-bit in size) yo
- something equivalent in C. (I can't use integers to represent booleans,
- because 2 (or 4) bytes is much too large for something that only takes a bit.
- Think C has a Boolean data type -- but this isn't part of ANSI C, is it?
- This code needs to be ANSI-C compliant.) That's probably not a major hurdle,
- but it's little things like that which pop up and make me more cautious.
-
- Well, if anyone has any suggestions or helpful hints, I'd be grateful if
- you pass them my way.
-
- Thanks!
-
- M. Scott Smith
- (mssmith@afterlife.ncsc.mil)
-