code-style

This commit is contained in:
Hiltjo Posthuma 2021-03-28 15:24:42 +02:00
parent d509e189d4
commit 4c4a085580
1 changed files with 29 additions and 26 deletions

13
svkbd.c
View File

@ -2,15 +2,15 @@
#include <sys/select.h>
#include <sys/time.h>
#include <ctype.h>
#include <locale.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <ctype.h>
#include <X11/keysym.h>
#include <X11/keysymdef.h>
@ -31,11 +31,15 @@
/* macros */
#define LENGTH(x) (sizeof x / sizeof x[0])
#define TEXTW(X) (drw_fontset_getwidth(drw, (X)))
#define STRINGTOKEYSYM(X) (XStringToKeySym(X))
#define TEXTW(X) (drw_fontset_getwidth(drw, (X)))
/* enums */
enum { SchemeNorm, SchemeNormABC, SchemeNormABCShift, SchemeNormShift, SchemePress, SchemePressShift, SchemeHighlight, SchemeHighlightShift, SchemeOverlay, SchemeOverlayShift, SchemeLast };
enum {
SchemeNorm, SchemeNormABC, SchemeNormABCShift, SchemeNormShift, SchemePress,
SchemePressShift, SchemeHighlight, SchemeHighlightShift, SchemeOverlay,
SchemeOverlayShift, SchemeLast
};
enum { NetWMWindowType, NetLast };
/* typedefs */
@ -767,7 +771,6 @@ readxresources(void)
if (XrmGetResource(xdb, "svkbd.overlayshiftforeground", "*", &type, &xval) && !colors[SchemeOverlayShift][ColFg])
colors[SchemeOverlayShift][ColFg] = estrdup(xval.addr);
XrmDestroyDatabase(xdb);
}
}