diff options
author | Orestis Floros <orestisflo@gmail.com> | 2020-04-19 09:43:48 +0200 |
---|---|---|
committer | Orestis Floros <orestisflo@gmail.com> | 2020-04-19 09:58:25 +0200 |
commit | 3c522d9f2f2b7a58952f219598d5e2df4e0e5334 (patch) | |
tree | ae3b75a4faa8601afd988bf73f5665e78e199425 /i3-config-wizard | |
parent | 0bce0d86bf767e90c7937ba9fb027ecaa5e037c7 (diff) | |
download | i3-3c522d9f2f2b7a58952f219598d5e2df4e0e5334.tar.gz i3-3c522d9f2f2b7a58952f219598d5e2df4e0e5334.zip |
Sort includes in *.c files
Not enabling in .clang-format because it breaks headers files.
Used:
IncludeCategories:
- Regex: '^<config'
Priority: 0
- Regex: '^".*"'
Priority: 1
- Regex: '^<(xcb|xkb|yajl|X11)'
Priority: 3
- Regex: '.*'
Priority: 2
Diffstat (limited to 'i3-config-wizard')
-rw-r--r-- | i3-config-wizard/main.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/i3-config-wizard/main.c b/i3-config-wizard/main.c index f999de30..61db75ec 100644 --- a/i3-config-wizard/main.c +++ b/i3-config-wizard/main.c @@ -23,37 +23,36 @@ #define _WITH_GETLINE #endif -#include <stdio.h> -#include <sys/types.h> -#include <stdlib.h> -#include <stdbool.h> -#include <unistd.h> -#include <string.h> +#include <assert.h> #include <ctype.h> -#include <errno.h> #include <err.h> -#include <stdint.h> +#include <errno.h> +#include <fcntl.h> #include <getopt.h> +#include <glob.h> #include <limits.h> +#include <stdbool.h> +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> #include <sys/stat.h> -#include <fcntl.h> -#include <glob.h> -#include <assert.h> +#include <sys/types.h> +#include <unistd.h> #include <xcb/xcb.h> #include <xcb/xcb_aux.h> #include <xcb/xcb_event.h> #include <xcb/xcb_keysyms.h> - -#include <xkbcommon/xkbcommon.h> #include <xkbcommon/xkbcommon-x11.h> +#include <xkbcommon/xkbcommon.h> #define SN_API_NOT_YET_FROZEN 1 #include <libsn/sn-launchee.h> +#include <X11/XKBlib.h> #include <X11/Xlib.h> #include <X11/keysym.h> -#include <X11/XKBlib.h> /* We need SYSCONFDIR for the path to the keycode config template, so raise an * error if it’s not defined for whatever reason */ |