Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Automatical function pointer declaration
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - May 03 2007 :  10:50:30 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - May 03 2007 :  11:01:49 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000