projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c7076a
)
Move STRINGIFY to utils.h and add STRINGIFY2
author
Pierre Le Marre
<dev@wismill.eu>
Tue, 4 Jul 2023 07:23:23 +0000
(09:23 +0200)
committer
Wismill
<dev@wismill.eu>
Fri, 14 Jul 2023 07:22:24 +0000
(09:22 +0200)
src/utils.h
patch
|
blob
|
history
src/x11/keymap.c
patch
|
blob
|
history
diff --git
a/src/utils.h
b/src/utils.h
index
aacb4a2
..
fdf758b
100644
(file)
--- a/
src/utils.h
+++ b/
src/utils.h
@@
-62,6
+62,9
@@
/* Round up @a so it's divisible by @b. */
#define ROUNDUP(a, b) (((a) + (b) - 1) / (b) * (b))
+#define STRINGIFY(x) #x
+#define STRINGIFY2(x) STRINGIFY(x)
+
char
to_lower(char c);
diff --git
a/src/x11/keymap.c
b/src/x11/keymap.c
index
473a89d
..
f2045b9
100644
(file)
--- a/
src/x11/keymap.c
+++ b/
src/x11/keymap.c
@@
-61,7
+61,6
@@
* We try not to trust the server too much and be paranoid. If we get
* something which we definitely shouldn't, we fail.
*/
-#define STRINGIFY(expr) #expr
#define FAIL_UNLESS(expr) do { \
if (!(expr)) { \
log_err(keymap->ctx, \