Strange definitions of 'min' and 'max' macros


Subject: Strange definitions of 'min' and 'max' macros
From: Mike Nordell (tamlin@algonet.se)
Date: Sun Jul 15 2001 - 04:19:51 CDT


ev_Menu_Labels.cpp define these macros, though it doesn't _use_ them
anywhere.

ev_Menu_Layouts.cpp defines them, and (perhaps even worse) uses one of them.

Does anyone know why they were added as _macros_ and not inline static
functions? Perhaps even more important: why they were named the same as std
C++ min/max?

Id like to remove them from ev_Menu_Labels.cpp, and in ev_Menu_Layouts.cpp
remove "min" (since it's never used) and replace "max" with an inline static
function (like the "priv_max" in ut_stringbuf.cpp).

Sure, I could quitely have done this and just posted a commit message, but
what fun would that have been, not providing any education? :-)

Cheers,

/Mike



This archive was generated by hypermail 2b25 : Sun Jul 15 2001 - 04:18:05 CDT