znakeeye
Tomato Guru
379 Posts |
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. |
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|