#784 Duplicate functions listed

closed-rejected
nobody
None
5
2012-11-06
2011-11-19
Anonymous
No

I am using a c compiler that requires the following format when declaring functions in a library

/*** BeginHeader func */

int func(void);

/*** EndHeader */

int func(void)

{

}

I am using Geany 0.20 - The problem is that each function appears twice in the function list, once for the declaration in the header and once for the actual function. Is there any way that I can resolve this?

Thank you

Discussion

  • Matthew Brush
    Matthew Brush
    2011-11-19

    If the prototype and definition are in the same file, this is actually an intentional feature that allows you to jump quickly between the function prototype and the definition. If your prototype is in a separate header file then it's probably a bug.

    Note: I'm assuming by "function list" you mean in the functions list in the sidebar.

     
    • status: open --> pending-rejected
     
  • It's a feature, not a bug. And no, it can't be configured.

     
  • Lex Trotman
    Lex Trotman
    2012-11-06

    • status: pending-rejected --> closed-rejected