• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Function Pop-Up and #if 0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function Pop-Up and #if 0


  • Subject: Re: Function Pop-Up and #if 0
  • From: Bryan Pietrzak <email@hidden>
  • Date: Fri, 9 Jul 2004 12:56:52 -0500

Sure, that makes sense. But since "#if 0" is a pretty common thing that a lot of people use, do you expect to make the scanner just a tad bit more knowledge about the preprocessor in this one respect.

Bryan

On Jul 9, 2004, at 10:54 AM, David Ewing wrote:

The scanner that is used for the function popup is intentionally simple so that it can be tolerant of syntax errors. One side effect of this is that only has limited knowledge of the preprocessor. This is a simple example of the kind of stuff that confuses it.

Dave

On Jul 8, 2004, at 3:52 PM, Bryan Pietrzak wrote:

I just filed rdar://3722111

This code will cause the function pop-up to stop showing any symbol
after function two....

--------------------------------------------------
void one(void)
{
}

void two(void)
{

#if 0
	}
#endif

	return err;
}

void three(void)
{
}
--------------------------------------------------

Shouldn't everything inside #if 0 ... #endif be ignored?

Bryan
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Function Pop-Up and #if 0 (From: Bryan Pietrzak <email@hidden>)
 >Re: Function Pop-Up and #if 0 (From: David Ewing <email@hidden>)

  • Prev by Date: Re: Prebinding [was Re: Static data -- thanks]
  • Next by Date: Re: One Target, separate apps
  • Previous by thread: Re: Function Pop-Up and #if 0
  • Next by thread: Framework subgroups, and Framework header directory creation
  • Index(es):
    • Date
    • Thread