mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-21 23:05:59 +01:00
typedefs instead of #defines
Replaced #defines with typedefs where possible, patch attached.
This commit is contained in:
parent
b8d6171cb0
commit
dc74c4f729
1 changed files with 5 additions and 5 deletions
10
st.c
10
st.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>
|
||||
|
@ -180,6 +176,10 @@ 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 */
|
||||
ushort mode; /* attribute flags */
|
||||
|
@ -3110,7 +3110,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
|
|||
FcCharSet *fccharset;
|
||||
Colour *fg, *bg, *temp, revfg, revbg, truefg, truebg;
|
||||
XRenderColor colfg, colbg;
|
||||
Rectangle r;
|
||||
XRectangle r;
|
||||
int oneatatime;
|
||||
|
||||
frcflags = FRC_NORMAL;
|
||||
|
|
Loading…
Reference in a new issue