mirror of
https://github.com/labwc/labwc.git
synced 2025-11-07 13:30:06 -05:00
src: include primary header first
This is a common practice in C projects, which simply enforces that each header must compile cleanly without implicit dependencies on other headers (see also the previous commit).
This commit is contained in:
parent
c9b576982d
commit
31d42b50e2
74 changed files with 74 additions and 72 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include "config/keybind.h"
|
||||
#include <assert.h>
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
|
|
@ -8,7 +9,6 @@
|
|||
#include <wlr/util/log.h>
|
||||
#include "common/list.h"
|
||||
#include "common/mem.h"
|
||||
#include "config/keybind.h"
|
||||
#include "config/rcxml.h"
|
||||
#include "labwc.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#include "config/libinput.h"
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include "common/mem.h"
|
||||
#include "common/list.h"
|
||||
#include "common/string-helpers.h"
|
||||
#include "config/libinput.h"
|
||||
#include "config/rcxml.h"
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include "config/mousebind.h"
|
||||
#include <assert.h>
|
||||
#include <linux/input-event-codes.h>
|
||||
#include <strings.h>
|
||||
|
|
@ -7,7 +8,6 @@
|
|||
#include <wlr/util/log.h>
|
||||
#include "common/list.h"
|
||||
#include "common/mem.h"
|
||||
#include "config/mousebind.h"
|
||||
#include "config/rcxml.h"
|
||||
|
||||
uint32_t
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include "config/rcxml.h"
|
||||
#include <assert.h>
|
||||
#include <fcntl.h>
|
||||
#include <glib.h>
|
||||
|
|
@ -29,7 +30,6 @@
|
|||
#include "config/libinput.h"
|
||||
#include "config/mousebind.h"
|
||||
#include "config/tablet.h"
|
||||
#include "config/rcxml.h"
|
||||
#include "labwc.h"
|
||||
#include "osd.h"
|
||||
#include "regions.h"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include "config/session.h"
|
||||
#include <assert.h>
|
||||
#include <dirent.h>
|
||||
#include <stdbool.h>
|
||||
|
|
@ -18,7 +19,6 @@
|
|||
#include "common/parse-bool.h"
|
||||
#include "common/spawn.h"
|
||||
#include "common/string-helpers.h"
|
||||
#include "config/session.h"
|
||||
#include "labwc.h"
|
||||
|
||||
static const char *const env_vars[] = {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include "config/tablet-tool.h"
|
||||
#include <strings.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "config/tablet-tool.h"
|
||||
|
||||
enum motion
|
||||
tablet_parse_motion(const char *name)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include "config/tablet.h"
|
||||
#include <linux/input-event-codes.h>
|
||||
#include <stdint.h>
|
||||
#include <strings.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "common/parse-double.h"
|
||||
#include "config/tablet.h"
|
||||
#include "config/rcxml.h"
|
||||
#include "input/tablet-pad.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include "config/touch.h"
|
||||
#include <strings.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "common/list.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue