Author Topic: Go to function problem  (Read 3691 times)

Offline elie

  • Multiple posting newcomer
  • *
  • Posts: 10
Go to function problem
« on: October 30, 2008, 01:29:44 pm »
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Go to function problem
« Reply #1 on: October 30, 2008, 05:58:37 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline elie

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Go to function problem
« Reply #2 on: November 02, 2008, 09:20:42 am »
Thanks.