Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!sdd.hp.com!decwrl!apple!well!oster From: oster@well.sf.ca.us (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Lint for Think C Message-ID: <19492@well.sf.ca.us> Date: 10 Aug 90 05:15:30 GMT References: <1990Aug5.195935.16500@phri.nyu.edu> Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 16 In article <1990Aug5.195935.16500@phri.nyu.edu> roy@alanine.phri.nyu.edu (Roy Smith) writes: >Think C. What I can't seem to figure out is how to debug programs, >especially when it comes to tracking down pointer mistakes. For example, I >just tracked down a bug resulting from my doing "GlobalToLocal (point)" >instead of "GlobalToLocal (&point)". Modern C's, particularly THINK C support prototypes. If you #include #include then the compiler will catch bugs like the one that bit you. You should be able to get MacProtos.h & MacProtos5.h from any decent Mac software archive. -- -- David Phillip Oster - Note new signature. Old one has gone Bye Bye. -- oster@well.sf.ca.us = {backbone}!well!oster