Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.glorb.com!news2.glorb.com!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 08 Mar 2011 19:42:19 -0600 From: John Holt Newsgroups: comp.sys.mac.programmer.misc Date: Tue, 8 Mar 2011 20:42:19 -0500 Message-ID: <2011030820421916807-me@foonet> References: <2011030714242616807-me@foonet> <4d75bb80$0$22164$742ec2ed@news.sonic.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: C/C++ tools User-Agent: Unison/1.8.1 Lines: 30 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 69.81.190.163 X-Trace: sv3-bFWaWarTbnmfdN1JuA3RuJTRrd/RJwwegh1eAs9wY7/q/vXVj4mmZRBaecSCm3LHI0Vge+LWK5wiWPN!WfmZ8r5ci6QsscsLrfLH+P0G4qxfo3qlUchwIDAiCCak4q8UTICCb5ifVGu3yifoQXdah2Wkrzbd!0JiUohKqLJs= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2038 Xref: x330-a1.tempe.blueboxinc.net comp.sys.mac.programmer.misc:3 On 2011-03-08 00:15:59 -0500, Kevin McMurtrie said: > In article <2011030714242616807-me@foonet>, John Holt > wrote: > >> I am working through the port of a system from Linux to Mac OS X (more >> like Free BSD since there are no GUI features). >> >> The code is in C and C++, and already has a significant number of OS >> specific compile conditionals for Windows and Linux. >> >> Can XCode show the boundaries or nesting of #if (#ifdef, #ifndef, >> #else) blocks? Are there any tools that will show the boundaries? >> >> Thanks in advance, > > XCode is mostly useless. It knows source code syntax but not the data > structures that it correlates to. > > I use Eclipse for Java but the C++ editor seems to be coming along > nicely. I just opened a test C++ project and it had deep source > analysis. It could show the value of each macro and it grayed out > source that was omitted from conditionals. Thanks. I'll give it a try. -- John Holt