User forums > Help

Auto-completion of functions pointers in a structure

(1/3) > >>

Folco:
Hi all,

I use a structure defined like that :

--- Code: ---typedef struct
{
    int (*Load)();          /* Constructor */
    void (*Unload)();       /* Destructor */
    void (*Manage)();       /* Management handler */
    MODULE_DATA* Data;      /* Used data */
} MODULE;
--- End code ---
When typing to write inside members of this structure, only the 'Data' member is displayed in the auto-completion list :



Is it a bug, must I fill a bug report ? Or perhaps I am wrong ?

Infos :
Code::Blocks svn 6218 on Debian Lenny 32 bits.
Package provided by Jens.

BTW : Many thanks, Jens, for your work and for the repo often updated !!!  8)

reckless:
not sure its a bug since you allready have the other members declared it correctly shows the missing one.

what happens if you remove Load Data etc from (*ModuleList[*ModuleNum]). ?

ollydbg:

--- Quote from: Folco on May 17, 2010, 06:35:10 pm ---Hi all,

I use a structure defined like that :

--- Code: ---typedef struct
{
    int (*Load)();          /* Constructor */
    void (*Unload)();       /* Destructor */
    void (*Manage)();       /* Management handler */
    MODULE_DATA* Data;      /* Used data */
} MODULE;
--- End code ---


--- End quote ---

I just do a test, and find that only "Data" will be parsed as a member of this structure. (All the other function pointers were not correctly parsed.)
So, only this member get prompted.

Folco:

--- Quote ---what happens if you remove Load Data etc from (*ModuleList[*ModuleNum]). ?
--- End quote ---
Exactly the same behavior.

--- Quote ---All the other function pointers were not correctly parsed.
--- End quote ---
So it's should be a bug, and I should fill a bug report ?

reckless:
id probably have to say yes as that shouldnt happen.

Navigation

[0] Message Index

[#] Next page

Go to full version