[torquedev] Cygwin patch and generic Code Quality
glen.beane at gmail.com
Tue Nov 3 07:36:38 MST 2009
2009/11/3 "Mgr. Šimon Tóth" <SimonT at mail.muni.cz>:
> This is just a generic request for higher Code Quality.
> The cygwin patch introduces new function IAmAdmin(), but instead of
> creating two version of this function (one for cygwin and one for
> generic POSIX) it splits the code on many places using #ifdefs.
> This approach makes the code hard to read, exponentially increases the
> probability of bugs and also makes the bugs much harder to find and debug.
> Plus, please, stop using the K&R backward compatibility macros, the code
> won't compile in K&R anyway, plus current compilers usually have good
> support for both ANSI (C90) and C99 standards, so there is no point for
> this any more.
I definitely agree that we should be getting rid of the K&R function
prototype macros - they serve no purpose now.
More information about the torquedev