On Tue, 3 Aug 2010 13:32:58 -0400 Michael Blumenkrantz <m...@zentific.com> wrote:
> Hi, > > In my continuing crusade for documentation and readability, I've found > one area which requires my assistance: function pointers. > Using ecore as an example, there are currently a LOT of different > types of function pointers, and they make function definitions > unnecessarily long, not to mention obfuscating code by not providing > a common typedef when multiple functions use the same type of > prototype. > > Short read: within the next week, function pointers within function > definitions will become typedefs when they are used repeatedly. Sounds all good. One extra feature of typedefs for functions: - It's the only way to pass a function pointer to a vararg function ;-) (Or at least get it out on the other side). Regards, nash [Who wonders who will argue with me on that point ;-)] [Bonus trivia: it's not valid to cast a function pointer to a void *] ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel