From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 Description of problem: cproto generates prototypes of the form: extern const char * foo( void ) = {0}; for functions of the form const char * foo( void ) { return( NULL ); } Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Create a file called x.c with the single line "const char *foo(void){return (void*)0;}" 2.Run "cproto x.c" Actual Results: cproto produced the output: /* x.c */ const char *foo(void) = {0}; Expected Results: I expected cproto to produce: /* x.c */ const char *foo(void); Additional info:
This doesn't happen for a current version of cproto. See http://invisible-island.net/cproto/
Fixed in 4.7c-1.