all repos — st @ dc74c4f729a4350267f269c767aa6e377d8d4fbc

st (suckless terminal) config

typedefs instead of #defines

Replaced #defines with typedefs where possible, patch attached.
noname@inventati.org noname@inventati.org
commit

dc74c4f729a4350267f269c767aa6e377d8d4fbc

parent

b8d6171cb00c28e4c90e58e101554097003b59d3

1 files changed, 5 insertions(+), 5 deletions(-)

jump to
M st.cst.c

@@ -36,10 +36,6 @@ char *argv0;

#define Glyph Glyph_ #define Font Font_ -#define Draw XftDraw * -#define Colour XftColor -#define Colourmap Colormap -#define Rectangle XRectangle #if defined(__linux) #include <pty.h>

@@ -179,6 +175,10 @@ typedef unsigned char uchar;

typedef unsigned int uint; typedef unsigned long ulong; typedef unsigned short ushort; + +typedef XftDraw *Draw; +typedef XftColor Colour; +typedef Colormap Colourmap; typedef struct { char c[UTF_SIZ]; /* character code */

@@ -3110,7 +3110,7 @@ FcFontSet *fcsets[] = { NULL };

FcCharSet *fccharset; Colour *fg, *bg, *temp, revfg, revbg, truefg, truebg; XRenderColor colfg, colbg; - Rectangle r; + XRectangle r; int oneatatime; frcflags = FRC_NORMAL;