Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 1997 17:09:08 +0300
From:      Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
To:        freebsd-current@FreeBSD.ORG
Subject:   Re: Bruce vandalism again 
Message-ID:  <199712211409.RAA02332@tejblum.dnttm.rssi.ru>
In-Reply-To: Your message of "Sun, 21 Dec 1997 11:02:36 %2B0100." <199712211002.LAA00388@uriah.heep.sax.de> 

index | next in thread | previous in thread | raw e-mail

Joerg Wunsch wrote:
> I think gcc even warns some (all?) possible problems iff the old-style
> definition is inconsistent with the ANSI prototype (from the .h file).

Yes. It also warns if there was no ANSI prototype for a function. (Btw, 
prototypes not necessary has to be in .h file. Prototypes for private 
functions go at the top of the source module (from style(9)))

So, i see no reason to convert files from K&R to ANSI. If there were no 
warnings, the program already "sane" enough, and converting it to ANSI would not 
make it more "sane".

Dima



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712211409.RAA02332>