wmaker: replaced macro by an inline function, in X Modifier initialisation
commitde00154fa171512532e44c706b6ed54e253c48cf
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 7 Dec 2014 16:10:18 +0000 (7 17:10 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 10 Dec 2014 10:19:18 +0000 (10 10:19 +0000)
tree935b1592ed36e19dfcaacd16ba3c514269e95fb6
parentd9438e65efe4e80f5c9e825a7975bd4fded4f868
wmaker: replaced macro by an inline function, in X Modifier initialisation

A macro can be a source of problems, because the compiler has no type on
the arguments to make checks. Using an inline function allows to do those
checks, meaning clearer error messages, it provides clear info in case of
name collision, it is easier to maintain (no need for the hacky '\' for
multi-lines) and the scope of visibility can be controlled more easily (no
need for #undef).

Took opportunity to change a 0 to the constant NoSymbol which is the name
defined by X for this case and another to NULL which is the right way to
set a null pointer in C.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/Makefile.am
src/xmodifier.c