mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
Reorganize includes
This commit is contained in:
parent
729fdf7d91
commit
416417a54c
50 changed files with 146 additions and 154 deletions
|
|
@ -1,16 +1,13 @@
|
|||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/un.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <unistd.h>
|
||||
#include "log.h"
|
||||
#include "stringop.h"
|
||||
#include "ipc.h"
|
||||
#include "readline.h"
|
||||
#include "ipc-client.h"
|
||||
#include "readline.h"
|
||||
#include "log.h"
|
||||
|
||||
static const char ipc_magic[] = {'i', '3', '-', 'i', 'p', 'c'};
|
||||
static const size_t ipc_header_size = sizeof(ipc_magic)+8;
|
||||
|
|
|
|||
16
common/log.c
16
common/log.c
|
|
@ -1,17 +1,15 @@
|
|||
#include "log.h"
|
||||
#include "sway.h"
|
||||
#include "readline.h"
|
||||
#include <errno.h>
|
||||
#include <libgen.h>
|
||||
#include <signal.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <libgen.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <time.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stringop.h>
|
||||
#include <time.h>
|
||||
#include "log.h"
|
||||
#include "sway.h"
|
||||
#include "readline.h"
|
||||
|
||||
static int colored = 1;
|
||||
static log_importance_t loglevel_default = L_ERROR;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
#include <math.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <wlc/wlc.h>
|
||||
#include <xkbcommon/xkbcommon-names.h>
|
||||
#include "log.h"
|
||||
#include "readline.h"
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
|
||||
int wrap(int i, int max) {
|
||||
return ((i % max) + max) % max;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue