wmaker: converted macro 'SAME' into a static function
commitc8ea949b1aad9e019141d67092304cbb7db5bf1a
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 25 Apr 2015 10:44:29 +0000 (25 12:44 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 25 Apr 2015 11:53:06 +0000 (25 07:53 -0400)
tree574e17caf1fb54b9d5212a985ea052e3a8f5822c
parent6ef343ed8795532c8936889a42873735157f0bae
wmaker: converted macro 'SAME' into a static function

There are some risks associated with the way arguments are used in macros,
and using a function also allows check on the type of arguments and leaves
more room to the compiler for making the best optimisation choice; it also
allows writing easier to read code (and thus, to maintain).

As a side effect, this should also help Coverity in avoiding false positive
bug reports (like #109605 and #109607).

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/session.c
src/window.c