Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329438

Summary: Indexer doesn't recognize "near" function
Product: [Tools] CDT Reporter: Eclipse_Keil <llw2go>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: RESOLVED INVALID QA Contact: Markus Schorn <mschorn.eclipse>
Severity: major    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Eclipse_Keil CLA 2010-11-04 10:19:02 EDT
WinXp

Eclipse Galileo, CDT 6.0, also
Eclipse Galileo, CDT 7.0, also
Eclipse Helios, CDT 7.0, also
Eclipse Helios, CDT 8.0

We use Eclipse to edit C files for embedded project. Sometimes we have function like:

  static void near func(void);

It seems Eclipse can't parser this function, it showes "syntax error", F3 don't work, Ctrl+Left dont't work and the outline don't work also. As soon as i remove "near", eveything is fine.

So how can i tell Eclipse to treat this function as a normal one?

Thanks a lot guys, you are the best!!! :)

Mike
Comment 1 Eclipse_Keil CLA 2010-11-04 10:28:11 EDT
Also, eclipse can't recognize "far" - i've tried this just before.
Comment 2 Markus Schorn CLA 2010-11-05 05:05:12 EDT
The concept 'near' and 'far' is not part of the c-standard, is it? I assume that these identifiers are mapped to some __attribute__ syntax via macro defintions either provided in an include file, on command line or built into
the compiler.
--> You need to make sure that the indexer is configured correctly. As a workaround you can specify 'far' and 'near' on the 'C/C++ General - Path's and Symbols - Symbols' page as empty macros.
Comment 3 Eclipse_Keil CLA 2010-11-05 07:40:35 EDT
Hi, Markus,

thanks ... again. It works.
I love you guys

Mike