News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Go to function problem

Started by elie, October 30, 2008, 01:29:44 PM

Previous topic - Next topic

elie

Hi,
I have ported an existing project to CB. In the project some function are declared as pairs of

extern char func1(int a);
extern char func1(int a)
{
    function body
}

(if you ask why... it's because it's a semi auto-generated code). Now I can't go to a function in a file because (I assume) the extern definitions - the parser skips these functions definitions.
Is there a way around this? Can I go to a function even if it's declared as extern?

thanks-
Elie

MortenMacFly

Quote from: elie on October 30, 2008, 01:29:44 PM
extern char func1(int a);
extern char func1(int a)
{
    function body
}
I am currently testing a modification of the CC parser that would support this.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

elie