]> git.sur5r.net Git - i3/i3/blobdiff - i3-nagbar/i3-nagbar.h
Merge pull request #1651 from tanderson92/pkgconfig
[i3/i3] / i3-nagbar / i3-nagbar.h
index 379a7f6f7e4b67a49f0a1c0652234447cc258bc1..fc076d728f8a099f80d9875c721d86eb42cc342d 100644 (file)
@@ -1,21 +1,18 @@
-#ifndef I3_NAGBAR
-#define I3_NAGBAR
+#pragma once
 
 #include <err.h>
 
 #define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
-#define FREE(pointer) do { \
+#define FREE(pointer)          \
+    do {                       \
         if (pointer != NULL) { \
-                free(pointer); \
-                pointer = NULL; \
-        } \
-} \
-while (0)
+            free(pointer);     \
+            pointer = NULL;    \
+        }                      \
+    } while (0)
 
-#define xmacro(atom) xcb_atom_t A_ ## atom;
+#define xmacro(atom) xcb_atom_t A_##atom;
 #include "atoms.xmacro"
 #undef xmacro
 
 extern xcb_window_t root;
-
-#endif