mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
includes: identifier consistency in include guards
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".
This commit is contained in:
parent
dbad5fc483
commit
7ad5200f2e
46 changed files with 141 additions and 129 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue