gcc and NULL function pointers.

Peter da Silva peter at ficc.ferranti.com
Tue Jun 25 04:10:25 AEST 1991


In article <4796 at inews.intel.com> bhoughto at hopi.intel.com (Blair P. Houghton) writes:
> Do a global search-and-replace on the files,
> especially if you ever expect to redistribute the code.

Only to real computers.

> That's why standard headers were invented, to be standard.

Fine. ((void *)0) still conforms to the standard.

>     sed 's/\([^_A-Za-z]\)NULL\([^_A-Za-z]\)/\1(void *)NULL\2/g'

Right. Boy, that's going to win friends and influence people. Plus, what do
you think that'd do when I want to apply the next patch that comes from the
net? Instead of grovelling around in code beforehand, I'll have to do it
over and over again for every patch.
-- 
Peter da Silva; Ferranti International Controls Corporation; +1 713 274 5180;
Sugar Land, TX  77487-5012;         `-_-' "Have you hugged your wolf, today?"



More information about the Comp.std.c mailing list