rules: improve error logging macros
authorRan Benita <ran234@gmail.com>
Tue, 8 Oct 2013 19:37:53 +0000 (22:37 +0300)
committerRan Benita <ran234@gmail.com>
Thu, 10 Oct 2013 19:02:30 +0000 (22:02 +0300)
commitefe5b036ee5b8b8a20b1e5395cfa1152218fe60c
treeba169b1ddfd6cd1a03f7f9cfb59eee305519538c
parent5af688e694705f990e1687e902a1dff3454d3b7b
rules: improve error logging macros

Improve safety with parenthesis, make the matcher macros use the scanner
ones, and make the 1 variant use %s instead of embedding the msg; this
way the compiler can reuse the string in the binary.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/rules.c