Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Automatical function pointer declaration

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
znakeeye Posted - May 03 2007 : 10:50:30 AM
You have this function:
void MyFunc(const char *psz, int len) { ... }

Now you want to create a function pointer for it.
(void(*)(const char*, int))

Not too hard this time, but sometimes it gets really nasty. Wouldn't it be great if you could right-click or press a key combination to get this declaration copied to the clipboard? Or better, an auto-complete list.

<key> An autocomplete-"Insert function pointer"-list pops up with all parsed functions types listed. Thus:

<key>mfc<enter> yields (for instance):
typedef (void(*)(const char*, int)) ...

Dunno. Just an idea.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 03 2007 : 11:01:49 AM
Is this something you do often? I am wondering how much use this command would get.

Looking at the current refactoring commands we have, adding one to "create function pointer" would be the obvious solution, but we would need somewhere to put the new variable.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000