[TUHS] Happy birthday, Dennis Ritchie! [ really sun vs dec/apollo --> X and NeWS ]

Larry McVoy lm at mcvoy.com
Tue Sep 19 23:22:50 AEST 2017


On Tue, Sep 19, 2017 at 12:22:14AM -0700, Ian Zimmerman wrote:
> On 2017-09-18 19:50, Larry McVoy wrote:
> 
> > So in the BitKeeper source, perror is redifined to my_perror which is
> > this:
> > 
> > void    
> > my_perror(char *file, int line, char *msg)
> 
> That is a different signature from perror, so I presume you mean you did
> something along the lines of
> 
> #define perror(s) (my_perror(__FILE__, __LINE__, (s)))

Yep.  It's much nicer knowing where in the source the error is coming
from.  Personally, I think this should be the libc version but I'm
weird :)



More information about the TUHS mailing list