clang-format: Fix alignment

This commit is contained in:
Kenny Levinsen 2021-09-21 12:46:52 +02:00
parent db08fb921f
commit e2baadc230
4 changed files with 11 additions and 11 deletions

View file

@ -2,7 +2,7 @@
IndentWidth: 8 IndentWidth: 8
TabWidth: 8 TabWidth: 8
ContinuationIndentWidth: 8 ContinuationIndentWidth: 8
UseTab: Always UseTab: ForContinuationAndIndentation
ColumnLimit: 100 ColumnLimit: 100
AlignConsecutiveMacros: true AlignConsecutiveMacros: true

View file

@ -9,8 +9,8 @@
#include "drm.h" #include "drm.h"
// From libdrm // From libdrm
#define DRM_IOCTL_BASE 'd' #define DRM_IOCTL_BASE 'd'
#define DRM_IO(nr) _IO(DRM_IOCTL_BASE, nr) #define DRM_IO(nr) _IO(DRM_IOCTL_BASE, nr)
#define DRM_IOCTL_SET_MASTER DRM_IO(0x1e) #define DRM_IOCTL_SET_MASTER DRM_IO(0x1e)
#define DRM_IOCTL_DROP_MASTER DRM_IO(0x1f) #define DRM_IOCTL_DROP_MASTER DRM_IO(0x1f)

View file

@ -13,14 +13,14 @@
#include <linux/vt.h> #include <linux/vt.h>
#define K_ENABLE K_UNICODE #define K_ENABLE K_UNICODE
#define K_DISABLE K_OFF #define K_DISABLE K_OFF
#define FRSIG 0 #define FRSIG 0
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__)
#include <sys/consio.h> #include <sys/consio.h>
#include <sys/kbio.h> #include <sys/kbio.h>
#include <termios.h> #include <termios.h>
#define K_ENABLE K_XLATE #define K_ENABLE K_XLATE
#define K_DISABLE K_RAW #define K_DISABLE K_RAW
#define FRSIG SIGIO #define FRSIG SIGIO
#else #else
#error Unsupported platform #error Unsupported platform
#endif #endif

View file

@ -1,10 +1,10 @@
#ifndef _SEATD_CONSTANTS_H #ifndef _SEATD_CONSTANTS_H
#define _SEATD_CONSTANTS_H #define _SEATD_CONSTANTS_H
#define MAX_PATH_LEN 256 #define MAX_PATH_LEN 256
#define MAX_SEAT_LEN 64 #define MAX_SEAT_LEN 64
#define MAX_SEAT_DEVICES 128 #define MAX_SEAT_DEVICES 128
#define MAX_SESSION_LEN 64 #define MAX_SESSION_LEN 64
#define CLIENT_EVENT(opcode) (opcode) #define CLIENT_EVENT(opcode) (opcode)
#define SERVER_EVENT(opcode) ((opcode) + (1 << 15)) #define SERVER_EVENT(opcode) ((opcode) + (1 << 15))
@ -15,7 +15,7 @@
#define CLIENT_CLOSE_DEVICE CLIENT_EVENT(4) #define CLIENT_CLOSE_DEVICE CLIENT_EVENT(4)
#define CLIENT_DISABLE_SEAT CLIENT_EVENT(5) #define CLIENT_DISABLE_SEAT CLIENT_EVENT(5)
#define CLIENT_SWITCH_SESSION CLIENT_EVENT(6) #define CLIENT_SWITCH_SESSION CLIENT_EVENT(6)
#define CLIENT_PING CLIENT_EVENT(7) #define CLIENT_PING CLIENT_EVENT(7)
#define SERVER_SEAT_OPENED SERVER_EVENT(1) #define SERVER_SEAT_OPENED SERVER_EVENT(1)
#define SERVER_SEAT_CLOSED SERVER_EVENT(2) #define SERVER_SEAT_CLOSED SERVER_EVENT(2)
@ -23,8 +23,8 @@
#define SERVER_DEVICE_CLOSED SERVER_EVENT(4) #define SERVER_DEVICE_CLOSED SERVER_EVENT(4)
#define SERVER_DISABLE_SEAT SERVER_EVENT(5) #define SERVER_DISABLE_SEAT SERVER_EVENT(5)
#define SERVER_ENABLE_SEAT SERVER_EVENT(6) #define SERVER_ENABLE_SEAT SERVER_EVENT(6)
#define SERVER_PONG SERVER_EVENT(7) #define SERVER_PONG SERVER_EVENT(7)
#define SERVER_ERROR SERVER_EVENT(0x7FFF) #define SERVER_ERROR SERVER_EVENT(0x7FFF)
#include <stdint.h> #include <stdint.h>