]> git.mdlowis.com Git - proto/labwc.git/commitdiff
includes: identifier consistency in include guards
authorTomi Ollila <tomi.ollila@iki.fi>
Sat, 13 May 2023 13:10:33 +0000 (16:10 +0300)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 13 May 2023 21:29:21 +0000 (22:29 +0100)
Made all header files to have LABWC_ prefix in include guard identifers.

Converted from __LABWC_ in 35 include/ files.
Converted from __LAB_ in 5 include/ files.
Added LABWC prefix to 3 include/ files.
Added include guards to 3 include/ files.

The double underscores were removed since according to C standard
those "are always reserved for any use".

46 files changed:
include/action.h
include/buffer.h
include/common/buf.h
include/common/dir.h
include/common/fd_util.h
include/common/font.h
include/common/grab-file.h
include/common/graphic-helpers.h
include/common/list.h
include/common/match.h
include/common/mem.h
include/common/nodename.h
include/common/parse-bool.h
include/common/scaled_font_buffer.h
include/common/scaled_scene_buffer.h
include/common/scene-helpers.h
include/common/spawn.h
include/common/string-helpers.h
include/config/keybind.h
include/config/libinput.h
include/config/mousebind.h
include/config/rcxml.h
include/config/session.h
include/cursor.h
include/debug.h
include/decorations.h
include/dnd.h
include/key-state.h
include/labwc.h
include/layers.h
include/menu/menu.h
include/node.h
include/regions.h
include/resistance.h
include/session-lock.h
include/ssd-internal.h
include/ssd.h
include/theme.h
include/view-impl-common.h
include/view.h
include/window-rules.h
include/workspaces.h
include/xbm/parse.h
include/xbm/tokenize.h
include/xbm/xbm.h
include/xwayland.h

index 3f466e45152052d74ce130a9cecb63da4a63d08a..d9913706630f09b3ed67785f23130677df7bb8ff 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_ACTION_H
-#define __LABWC_ACTION_H
+#ifndef LABWC_ACTION_H
+#define LABWC_ACTION_H
 
 #include <wayland-util.h>
 
@@ -30,4 +30,4 @@ void actions_run(struct view *activator, struct server *server,
        struct wl_list *actions, uint32_t resize_edges);
 void action_list_free(struct wl_list *action_list);
 
-#endif /* __LABWC_ACTION_H */
+#endif /* LABWC_ACTION_H */
index 59ec3f12c1677ca37105511e2f967b161fe8e4a4..a0ab30967d2be3e906e4af8b2eb4520773c47e50 100644 (file)
@@ -23,8 +23,8 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  * SOFTWARE.
  */
-#ifndef __LABWC_BUFFER_H
-#define __LABWC_BUFFER_H
+#ifndef LABWC_BUFFER_H
+#define LABWC_BUFFER_H
 
 #include <cairo.h>
 #include <wlr/types/wlr_buffer.h>
@@ -49,4 +49,4 @@ struct lab_data_buffer *buffer_create_cairo(uint32_t width, uint32_t height,
 struct lab_data_buffer *buffer_create_wrap(void *pixel_data, uint32_t width,
        uint32_t height, uint32_t stride, bool free_on_destroy);
 
-#endif /* __LABWC_BUFFER_H */
+#endif /* LABWC_BUFFER_H */
index a617167271362dbf974f4b30120dccc5f837cda3..9fcb52062e35f89a8c2da8b535e9f60d77183d8b 100644 (file)
@@ -5,8 +5,8 @@
  * Copyright Johan Malm 2020
  */
 
-#ifndef __LABWC_BUF_H
-#define __LABWC_BUF_H
+#ifndef LABWC_BUF_H
+#define LABWC_BUF_H
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -39,4 +39,4 @@ void buf_init(struct buf *s);
  */
 void buf_add(struct buf *s, const char *data);
 
-#endif /* __LABWC_BUF_H */
+#endif /* LABWC_BUF_H */
index e756401f22b4adb34a2b0dea132a7bf6694e84c9..ef03b5e79f30f48042f2717afed236c8d86dea53 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_DIR_H
-#define __LABWC_DIR_H
+#ifndef LABWC_DIR_H
+#define LABWC_DIR_H
 
 char *config_dir(void);
 
@@ -10,4 +10,4 @@ char *config_dir(void);
  */
 char *theme_dir(const char *theme_name);
 
-#endif /* __LABWC_DIR_H */
+#endif /* LABWC_DIR_H */
index 9819f2528bc9947835ec7dfbd0f972340f2c51a5..c5411a21986f9c86ad8be22a3261fac121522cf1 100644 (file)
@@ -1,8 +1,8 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_FD_UTIL_H
-#define __LABWC_FD_UTIL_H
+#ifndef LABWC_FD_UTIL_H
+#define LABWC_FD_UTIL_H
 
 void increase_nofile_limit(void);
 void restore_nofile_limit(void);
 
-#endif /* __LABWC_FD_UTIL_H */
+#endif /* LABWC_FD_UTIL_H */
index bb765d23a6ddf6cbbe12bcc3fdd64fbdf74ba3fa..38e56b944ebd578d42a6381ecab73111dd2c65eb 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_FONT_H
-#define __LABWC_FONT_H
+#ifndef LABWC_FONT_H
+#define LABWC_FONT_H
 
 struct lab_data_buffer;
 
@@ -54,4 +54,4 @@ void font_buffer_create(struct lab_data_buffer **buffer, int max_width,
  */
 void font_finish(void);
 
-#endif /* __LABWC_FONT_H */
+#endif /* LABWC_FONT_H */
index a2a0953bd4734d95edff44d54349c5edde32dbd1..df983f75fdc27265ce2a6750e0508295f653e5c8 100644 (file)
@@ -5,8 +5,8 @@
  * Copyright Johan Malm 2020
  */
 
-#ifndef __LABWC_GRAB_FILE_H
-#define __LABWC_GRAB_FILE_H
+#ifndef LABWC_GRAB_FILE_H
+#define LABWC_GRAB_FILE_H
 
 /**
  * grab_file - read file into memory buffer
@@ -15,4 +15,4 @@
  */
 char *grab_file(const char *filename);
 
-#endif /* __LABWC_GRAB_FILE_H */
+#endif /* LABWC_GRAB_FILE_H */
index c8c8a1dc7326754e97c8f3cb8e05395d98f88f94..364d0cf22a3978278d8de1d317e51eab1f89ef5d 100644 (file)
@@ -1,4 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef LABWC_GRAPHIC_HELPERS_H
+#define LABWC_GRAPHIC_HELPERS_H
 
 #include <cairo.h>
 #include <wayland-server-core.h>
@@ -44,3 +46,5 @@ void set_cairo_color(cairo_t *cairo, float *color);
 /* Draws a border with a specified line width */
 void draw_cairo_border(cairo_t *cairo, double width, double height,
                double line_width);
+
+#endif /* LABWC_GRAPHIC_HELPERS_H */
index a56d66aeeaaa763e212fe4602d77a6f2c2206cb5..37d4b72f85b4f934a1cedacee8b936052742aea0 100644 (file)
@@ -1,4 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef LABWC_LIST_H
+#define LABWC_LIST_H
 #include <wayland-server-core.h>
 
 /**
@@ -17,3 +19,5 @@ wl_list_append(struct wl_list *list, struct wl_list *elm)
 {
        wl_list_insert(list->prev, elm);
 }
+
+#endif /* LABWC_LIST_H */
index c1dce2652bd283f2fff3fbd278001ff622a8df74..3c4afddc87bc468b1cfd9deaaa4ab85c0356392b 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_MATCH_H
-#define __LABWC_MATCH_H
+#ifndef LABWC_MATCH_H
+#define LABWC_MATCH_H
 #include <glib.h>
 
 /**
@@ -11,4 +11,4 @@
  */
 bool match_glob(const gchar *pattern, const gchar *string);
 
-#endif /* __LABWC_MATCH_H */
+#endif /* LABWC_MATCH_H */
index fa9607d63cb4138fa2fbec40cf32e1f329a898c3..4fd5b34900e10c3a1ceb666424ab698a456ade91 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_MEM_H
-#define __LABWC_MEM_H
+#ifndef LABWC_MEM_H
+#define LABWC_MEM_H
 
 #include <stdlib.h>
 
@@ -52,4 +52,4 @@ char *xstrdup(const char *str);
        free(ptr); (ptr) = NULL; \
 } while (0)
 
-#endif /* __LABWC_MEM_H */
+#endif /* LABWC_MEM_H */
index 106fcf0c99a49b35ce3d6f72b3150a27ff2d1d49..f05c1283761378df3e288a104f5655a812b35b65 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_NODENAME_H
-#define __LABWC_NODENAME_H
+#ifndef LABWC_NODENAME_H
+#define LABWC_NODENAME_H
 
 #include <libxml/parser.h>
 #include <libxml/tree.h>
@@ -17,4 +17,4 @@
  */
 char *nodename(xmlNode * node, char *buf, int len);
 
-#endif /* __LABWC_NODENAME_H */
+#endif /* LABWC_NODENAME_H */
index 900a83f39ee6db304a418ad607f6a47a475613a4..65fff3840cc0054634dcc2879c515e543601a9b5 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_PARSE_BOOL_H
-#define __LABWC_PARSE_BOOL_H
+#ifndef LABWC_PARSE_BOOL_H
+#define LABWC_PARSE_BOOL_H
 #include <stdbool.h>
 
 /**
@@ -21,4 +21,4 @@ int parse_bool(const char *str, int default_value);
 void set_bool(const char *str, bool *variable);
 void set_bool_as_int(const char *str, int *variable);
 
-#endif /* __LABWC_PARSE_BOOL_H */
+#endif /* LABWC_PARSE_BOOL_H */
index de9a365f8fdf39bacba7d372b7d995489dcd9ad8..cba277efa6b1e8ead6d592af859b744e0d106c24 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LAB_COMMON_SCALED_FONT_BUFFER_H
-#define __LAB_COMMON_SCALED_FONT_BUFFER_H
+#ifndef LABWC_SCALED_FONT_BUFFER_H
+#define LABWC_SCALED_FONT_BUFFER_H
 
 #include "common/font.h"
 
@@ -56,4 +56,4 @@ void scaled_font_buffer_update(struct scaled_font_buffer *self, const char *text
  */
 void scaled_font_buffer_set_max_width(struct scaled_font_buffer *self, int max_width);
 
-#endif /* __LAB_COMMON_SCALED_FONT_BUFFER_H */
+#endif /* LABWC_SCALED_FONT_BUFFER_H */
index 2057ab249f1164166ee0a5a7b90cffeb67792f62..114737679d20875c685c14606f8c78acf30d7965 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LAB_COMMON_SCALED_SCENE_BUFFER_H
-#define __LAB_COMMON_SCALED_SCENE_BUFFER_H
+#ifndef LABWC_SCALED_SCENE_BUFFER_H
+#define LABWC_SCALED_SCENE_BUFFER_H
 
 #define LAB_SCALED_BUFFER_MAX_CACHE 2
 
@@ -66,4 +66,4 @@ struct scaled_scene_buffer_cache_entry {
        double scale;
 };
 
-#endif /* __LAB_COMMON_SCALED_SCENE_BUFFER_H */
+#endif /* LABWC_SCALED_SCENE_BUFFER_H */
index 921ff56abc7ded0ceb87285fe11aa4353a94c991..4eddf98ccfac71f1ac5c3d38c70dc9256790ef01 100644 (file)
@@ -1,4 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef LABWC_SCENE_HELPERS_H
+#define LABWC_SCENE_HELPERS_H
 
 struct wlr_scene_node;
 struct wlr_scene_rect;
@@ -15,3 +17,5 @@ struct wlr_surface *lab_wlr_surface_from_node(struct wlr_scene_node *node);
  * Return NULL if previous link is list-head which means node is bottom-most
  */
 struct wlr_scene_node *lab_wlr_scene_get_prev_node(struct wlr_scene_node *node);
+
+#endif /* LABWC_SCENE_HELPERS_H */
index db899589f9ee0a872951526776dd0c44fbf37e87..8e41b4f4b8e4ac7b18fea3ce27c35cf018550325 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_SPAWN_H
-#define __LABWC_SPAWN_H
+#ifndef LABWC_SPAWN_H
+#define LABWC_SPAWN_H
 
 /**
  * spawn_async_no_shell - execute asyncronously
@@ -8,4 +8,4 @@
  */
 void spawn_async_no_shell(char const *command);
 
-#endif /* __LABWC_SPAWN_H */
+#endif /* LABWC_SPAWN_H */
index afe46fdd2ce2e6a8244ae9f8e4f3013f7658d2c1..55b940d098b93dbcaead5688b82f1773c337e2d8 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_STRING_HELPERS_H
-#define __LABWC_STRING_HELPERS_H
+#ifndef LABWC_STRING_HELPERS_H
+#define LABWC_STRING_HELPERS_H
 
 /**
  * string_strip - strip white space left and right
@@ -16,4 +16,4 @@ char *string_strip(char *s);
  */
 void string_truncate_at_pattern(char *buf, const char *pattern);
 
-#endif /* __LABWC_STRING_HELPERS_H */
+#endif /* LABWC_STRING_HELPERS_H */
index e6c2f3247bc45b580e9a3ba69f7980f05a1bd9f2..352ee8fd93cac672520310dec2c4f4d35d42c2fa 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_KEYBIND_H
-#define __LABWC_KEYBIND_H
+#ifndef LABWC_KEYBIND_H
+#define LABWC_KEYBIND_H
 
 #include <wlr/types/wlr_keyboard.h>
 #include <xkbcommon/xkbcommon.h>
@@ -30,4 +30,4 @@ uint32_t parse_modifier(const char *symname);
 
 bool keybind_the_same(struct keybind *a, struct keybind *b);
 
-#endif /* __LABWC_KEYBIND_H */
+#endif /* LABWC_KEYBIND_H */
index 97409b34e9cc506b3fb74e00b3f178c703327073..d944195d1ac53723eb6be9f71fe1f6e4f9dcf2fc 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_LIBINPUT_H
-#define __LABWC_LIBINPUT_H
+#ifndef LABWC_LIBINPUT_H
+#define LABWC_LIBINPUT_H
 
 #include <libinput.h>
 #include <string.h>
@@ -30,4 +30,4 @@ enum device_type get_device_type(const char *s);
 struct libinput_category *libinput_category_create(void);
 struct libinput_category *libinput_category_get_default(void);
 
-#endif /* __LABWC_LIBINPUT_H */
+#endif /* LABWC_LIBINPUT_H */
index b6335bdfcb81d22b7b3a95766eb0a9c82ad8a43f..0d78973bd6cd952b9ad1a55dc164520b6e0fcc46 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_MOUSEBIND_H
-#define __LABWC_MOUSEBIND_H
+#ifndef LABWC_MOUSEBIND_H
+#define LABWC_MOUSEBIND_H
 
 #include <wayland-util.h>
 #include "ssd.h"
@@ -50,4 +50,4 @@ enum direction mousebind_direction_from_str(const char *str, uint32_t *modifiers
 struct mousebind *mousebind_create(const char *context);
 bool mousebind_the_same(struct mousebind *a, struct mousebind *b);
 
-#endif /* __LABWC_MOUSEBIND_H */
+#endif /* LABWC_MOUSEBIND_H */
index 7b808dfe58535a80e0861cd96c9070cb76aae3bd..8e7f3c5fd7a291dbd38afb36292533854b6a7eab 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_RCXML_H
-#define __LABWC_RCXML_H
+#ifndef LABWC_RCXML_H
+#define LABWC_RCXML_H
 
 #include <stdbool.h>
 #include <stdio.h>
@@ -91,4 +91,4 @@ void rcxml_parse_xml(struct buf *b);
 void rcxml_read(const char *filename);
 void rcxml_finish(void);
 
-#endif /* __LABWC_RCXML_H */
+#endif /* LABWC_RCXML_H */
index e6534539e4cbafb4667b70319b7c0b12df2791af..4cc19b6e1ee534769872d75fb92b70ccda797a82 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_SESSION_H
-#define __LABWC_SESSION_H
+#ifndef LABWC_SESSION_H
+#define LABWC_SESSION_H
 
 /**
  * session_environment_init - set enrivonment variables based on <key>=<value>
@@ -17,4 +17,4 @@ void session_environment_init(const char *dir);
  */
 void session_autostart_init(const char *dir);
 
-#endif /* __LABWC_SESSION_H */
+#endif /* LABWC_SESSION_H */
index 0f42cfb4272e4e624abae831cc3a0f69b23dbea3..4b00c388ce051a0d242b3dcfa1a62e06c704ff68 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_CURSOR_H
-#define __LABWC_CURSOR_H
+#ifndef LABWC_CURSOR_H
+#define LABWC_CURSOR_H
 
 #include <wlr/util/edges.h>
 #include "ssd.h"
@@ -119,4 +119,4 @@ void cursor_update_image(struct seat *seat);
 void cursor_init(struct seat *seat);
 void cursor_finish(struct seat *seat);
 
-#endif /* __LABWC_CURSOR_H */
+#endif /* LABWC_CURSOR_H */
index 5b4b4e0ca4b9efb14182eef175a91eaeaedfd453..ad128ee649f0a0f4a89cab7420a2eabf55aba16d 100644 (file)
@@ -1,9 +1,9 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __DEBUG_H
-#define __DEBUG_H
+#ifndef LABWC_DEBUG_H
+#define LABWC_DEBUG_H
 
 struct server;
 
 void debug_dump_scene(struct server *server);
 
-#endif /* __DEBUG_H */
+#endif /* LABWC_DEBUG_H */
index 2f43c559d08c7b264ca1a6e8b93a974357295815..a77a7c58ea117970503b89a4ed6c58844c271ae7 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LAB_DECORATIONS_H
-#define __LAB_DECORATIONS_H
+#ifndef LABWC_DECORATIONS_H
+#define LABWC_DECORATIONS_H
 
 struct server;
 struct view;
@@ -12,4 +12,4 @@ void xdg_server_decoration_init(struct server *server);
 void kde_server_decoration_update_default(void);
 void kde_server_decoration_set_view(struct view *view, struct wlr_surface *surface);
 
-#endif /* __LAB_DECORATIONS_H */
+#endif /* LABWC_DECORATIONS_H */
index 82122691b01df2861e20f0477485780cf532f70c..431fbd6a08bae1180f3ddfb613a7e902ad45d503 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LAB_DND_H
-#define __LAB_DND_H
+#ifndef LABWC_DND_H
+#define LABWC_DND_H
 
 #include <wayland-server-core.h>
 
@@ -24,4 +24,4 @@ void dnd_icons_show(struct seat *seat, bool show);
 void dnd_icons_move(struct seat *seat, double x, double y);
 void dnd_finish(struct seat *seat);
 
-#endif /* __LAB_DND_H */
+#endif /* LABWC_DND_H */
index 007672582d84880117dc75b3bde1743d1d2524d3..a45b349497e64a5dfd90ab2c030f1ffd862d2f56 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_KEY_STATE_H
-#define __LABWC_KEY_STATE_H
+#ifndef LABWC_KEY_STATE_H
+#define LABWC_KEY_STATE_H
 
 /*
  * All keycodes in these functions are (Linux) libinput evdev scancodes which is
@@ -22,4 +22,4 @@ bool key_state_corresponding_press_event_was_bound(uint32_t keycode);
 void key_state_bound_key_remove(uint32_t keycode);
 int key_state_nr_keys(void);
 
-#endif /* __LABWC_KEY_STATE_H */
+#endif /* LABWC_KEY_STATE_H */
index d6bd36c1eadbbc13463763ec8b8ac58092031c44..4016da3b4dc9f825d95292c48af1dfb42e94c93d 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_H
-#define __LABWC_H
+#ifndef LABWC_H
+#define LABWC_H
 #include "config.h"
 #include <getopt.h>
 #include <stdbool.h>
@@ -455,4 +455,4 @@ void create_constraint(struct wl_listener *listener, void *data);
 void constrain_cursor(struct server *server, struct wlr_pointer_constraint_v1
        *constraint);
 
-#endif /* __LABWC_H */
+#endif /* LABWC_H */
index a42b7bab4de1e3be5fa910861b59121a8a20c412..d64c434fb07c5ed0710d654a2fc4715d98811c94 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_LAYERS_H
-#define __LABWC_LAYERS_H
+#ifndef LABWC_LAYERS_H
+#define LABWC_LAYERS_H
 #include <wayland-server.h>
 #include <wlr/types/wlr_layer_shell_v1.h>
 
@@ -36,4 +36,4 @@ void layers_init(struct server *server);
 
 void layers_arrange(struct output *output);
 
-#endif /* __LABWC_LAYERS_H */
+#endif /* LABWC_LAYERS_H */
index 5d07fed03e56d6da2da360edd162ff51397dd875..490bcefb46c8bb2278b323a7343bf4b81c39b41a 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_MENU_H
-#define __LABWC_MENU_H
+#ifndef LABWC_MENU_H
+#define LABWC_MENU_H
 
 #include <wayland-server.h>
 
@@ -115,4 +115,4 @@ void menu_close_root(struct server *server);
 /* menu_reconfigure - reload theme and content */
 void menu_reconfigure(struct server *server);
 
-#endif /* __LABWC_MENU_H */
+#endif /* LABWC_MENU_H */
index 3e0601a50d2e330adba9101da739e9c4a7ac15ac..419aa996854e365591b61f2ff9101e9c37aa30ff 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_NODE_DESCRIPTOR_H
-#define __LABWC_NODE_DESCRIPTOR_H
+#ifndef LABWC_NODE_DESCRIPTOR_H
+#define LABWC_NODE_DESCRIPTOR_H
 #include <wlr/types/wlr_scene.h>
 
 struct view;
@@ -79,4 +79,4 @@ struct menuitem *node_menuitem_from_node(
 struct ssd_button *node_ssd_button_from_node(
        struct wlr_scene_node *wlr_scene_node);
 
-#endif /* __LABWC_NODE_DESCRIPTOR_H */
+#endif /* LABWC_NODE_DESCRIPTOR_H */
index 67dcb78dfeec8dfb2b7683faca298e84a3e05061..6638f9f3b9784d957bf14584f606def290dbca48 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_REGIONS_H
-#define __LABWC_REGIONS_H
+#ifndef LABWC_REGIONS_H
+#define LABWC_REGIONS_H
 
 #include <wlr/util/box.h>
 
@@ -76,4 +76,4 @@ struct region *regions_from_name(const char *region_name, struct output *output)
 void regions_show_overlay(struct view *view, struct seat *seat, struct region *region);
 void regions_hide_overlay(struct seat *seat);
 
-#endif /* __LABWC_REGIONS_H */
+#endif /* LABWC_REGIONS_H */
index 3251b0de5f40e839ab1871b7cbadf54df783c680..65b148699cd9ade04b0eb4a5743ef03da66ae153 100644 (file)
@@ -1,9 +1,9 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __RESISTANCE_H
-#define __RESISTANCE_H
+#ifndef LABWC_RESISTANCE_H
+#define LABWC_RESISTANCE_H
 #include "labwc.h"
 
 void resistance_move_apply(struct view *view, double *x, double *y);
 void resistance_resize_apply(struct view *view, struct wlr_box *new_view_geo);
 
-#endif /* __RESISTANCE_H */
+#endif /* LABWC_RESISTANCE_H */
index aea4e4bd8f3b3e7ade4ca1aeadbe85356d52ee5d..8c8a0ff6099af486192882e85c26a9f95a01a378 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LAB_SESSION_LOCK_H
-#define __LAB_SESSION_LOCK_H
+#ifndef LABWC_SESSION_LOCK_H
+#define LABWC_SESSION_LOCK_H
 
 #include <wlr/types/wlr_session_lock_v1.h>
 
@@ -19,4 +19,4 @@ struct session_lock {
 void session_lock_init(struct server *server);
 void session_lock_output_create(struct session_lock *lock, struct output *output);
 
-#endif /* __LAB_SESSION_LOCK_H */
+#endif /* LABWC_SESSION_LOCK_H */
index 150e9c4b2487a74e3b906980c8d18966b0621038..d6459122f82244b9fe366500f7da1d09ac34cb2a 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_SSD_INTERNAL_H
-#define __LABWC_SSD_INTERNAL_H
+#ifndef LABWC_SSD_INTERNAL_H
+#define LABWC_SSD_INTERNAL_H
 
 #include <wlr/util/box.h>
 #include "ssd.h"
@@ -136,4 +136,4 @@ void ssd_extents_create(struct ssd *ssd);
 void ssd_extents_update(struct ssd *ssd);
 void ssd_extents_destroy(struct ssd *ssd);
 
-#endif /* __LABWC_SSD_INTERNAL_H */
+#endif /* LABWC_SSD_INTERNAL_H */
index 68369a47c95827ad255ba5eb4e3d340307ae0800..87528f97beb756abbdbadb9f23daffdee10116b8 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_SSD_H
-#define __LABWC_SSD_H
+#ifndef LABWC_SSD_H
+#define LABWC_SSD_H
 
 #include <wayland-server-core.h>
 
@@ -95,4 +95,4 @@ bool ssd_debug_is_root_node(const struct ssd *ssd, struct wlr_scene_node *node);
 const char *ssd_debug_get_node_name(const struct ssd *ssd,
        struct wlr_scene_node *node);
 
-#endif /* __LABWC_SSD_H */
+#endif /* LABWC_SSD_H */
index 11386cad1a3a1fabb86765035a919cf832892fb0..b457b87b2e286a7583114c929746ae161c14cf3c 100644 (file)
@@ -5,8 +5,8 @@
  * Copyright Johan Malm 2020-2021
  */
 
-#ifndef __LABWC_THEME_H
-#define __LABWC_THEME_H
+#ifndef LABWC_THEME_H
+#define LABWC_THEME_H
 
 #include <stdio.h>
 #include <wlr/render/wlr_renderer.h>
@@ -100,4 +100,4 @@ void theme_init(struct theme *theme, const char *theme_name);
  */
 void theme_finish(struct theme *theme);
 
-#endif /* __LABWC_THEME_H */
+#endif /* LABWC_THEME_H */
index a36f2d518af3968acd4acb56c8818aa5f3eaa62f..01073c3588d77064c0c2185c84201249e6e87144 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_VIEW_IMPL_COMMON_H
-#define __LABWC_VIEW_IMPL_COMMON_H
+#ifndef LABWC_VIEW_IMPL_COMMON_H
+#define LABWC_VIEW_IMPL_COMMON_H
 /*
  * Common code for view->impl functions
  *
@@ -20,4 +20,4 @@ void view_impl_map(struct view *view);
  */
 void view_impl_apply_geometry(struct view *view, int w, int h);
 
-#endif /* __LABWC_VIEW_IMPL_COMMON_H */
+#endif /* LABWC_VIEW_IMPL_COMMON_H */
index d96ccbcaf16f1b71ad6e375faf64461ef5c1fbc8..08e3f273bafe0f7613eddba143d237336e46677c 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_VIEW_H
-#define __LABWC_VIEW_H
+#ifndef LABWC_VIEW_H
+#define LABWC_VIEW_H
 
 #include "config.h"
 #include <stdbool.h>
@@ -202,4 +202,4 @@ void view_destroy(struct view *view);
 /* xdg.c */
 struct wlr_xdg_surface *xdg_surface_from_view(struct view *view);
 
-#endif /* __LABWC_VIEW_H */
+#endif /* LABWC_VIEW_H */
index e45761669e8ef98e2d939595a66bd159ac5ea85c..9a002d084ef2029bd6e36f60e7c39212bdb1498b 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __WINDOW_RULES_H
-#define __WINDOW_RULES_H
+#ifndef LABWC_WINDOW_RULES_H
+#define LABWC_WINDOW_RULES_H
 
 enum window_rule_event {
        LAB_WINDOW_RULE_EVENT_ON_FIRST_MAP = 0,
@@ -35,4 +35,4 @@ struct view;
 void window_rules_apply(struct view *view, enum window_rule_event event);
 enum property window_rules_get_property(struct view *view, const char *property);
 
-#endif /* __WINDOW_RULES_H */
+#endif /* LABWC_WINDOW_RULES_H */
index 809112c21c75547939fe461ee8029febaf76d6b0..a8a4ee7b61529693e84478075c212d95f43d01d8 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_WORKSPACES_H
-#define __LABWC_WORKSPACES_H
+#ifndef LABWC_WORKSPACES_H
+#define LABWC_WORKSPACES_H
 
 struct seat;
 struct view;
@@ -25,4 +25,4 @@ void workspaces_destroy(struct server *server);
 void workspaces_osd_hide(struct seat *seat);
 struct workspace *workspaces_find(struct workspace *anchor, const char *name);
 
-#endif /* __LABWC_WORKSPACES_H */
+#endif /* LABWC_WORKSPACES_H */
index a344ba84b69dd903c49b6984dfd997f0d01cc0df..f9ad9119d13177487e9d432b9c9b781e707b16ea 100644 (file)
@@ -5,8 +5,8 @@
  * Copyright Johan Malm 2020
  */
 
-#ifndef __LABWC_PARSE_H
-#define __LABWC_PARSE_H
+#ifndef LABWC_PARSE_H
+#define LABWC_PARSE_H
 
 #include "xbm/tokenize.h"
 #include <stdint.h>
@@ -35,4 +35,4 @@ struct pixmap parse_xbm_tokens(struct token *tokens);
  */
 struct pixmap parse_xbm_builtin(const char *button, int size);
 
-#endif /* __LABWC_PARSE_H */
+#endif /* LABWC_PARSE_H */
index 4887ac2018e36b2ed9e067bd5b7a833dd06abc49..b39f881d934c007cfa32b149bc5a8b737e4f2bba 100644 (file)
@@ -5,8 +5,8 @@
  * Copyright Johan Malm 2020
  */
 
-#ifndef __LABWC_TOKENIZE_H
-#define __LABWC_TOKENIZE_H
+#ifndef LABWC_TOKENIZE_H
+#define LABWC_TOKENIZE_H
 
 enum token_type {
        TOKEN_NONE = 0,
@@ -31,4 +31,4 @@ struct token {
  */
 struct token *tokenize_xbm(char *buffer);
 
-#endif /* __LABWC_TOKENIZE_H */
+#endif /* LABWC_TOKENIZE_H */
index f0957d3d900347ba6b96c4a2c1d7923e2f7844dd..ffcdaf085373c7f78a997d200e1e5729918768ed 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_XBM_H
-#define __LABWC_XBM_H
+#ifndef LABWC_XBM_H
+#define LABWC_XBM_H
 
 #include <wlr/render/wlr_renderer.h>
 
@@ -11,4 +11,4 @@
  */
 void xbm_load(struct theme *theme);
 
-#endif /* __LABWC_XBM_H */
+#endif /* LABWC_XBM_H */
index 4626ece1d2af46ea07a685624a38569692141880..b586cd6b3ef529a7e7d95f5e3e648da4326c3f13 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __LABWC_XWAYLAND_H
-#define __LABWC_XWAYLAND_H
+#ifndef LABWC_XWAYLAND_H
+#define LABWC_XWAYLAND_H
 #include "config.h"
 #if HAVE_XWAYLAND
 #include "view.h"
@@ -55,4 +55,4 @@ void xwayland_server_init(struct server *server,
 void xwayland_server_finish(struct server *server);
 
 #endif /* HAVE_XWAYLAND */
-#endif /* __LABWC_XWAYLAND_H */
+#endif /* LABWC_XWAYLAND_H */