diff options
| author | noname@inventati.org <noname@inventati.org> | 2014-04-05 20:54:01 +0400 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2014-04-15 08:14:46 +0200 |
| commit | dc74c4f729a4350267f269c767aa6e377d8d4fbc (patch) | |
| tree | f40de9adf0d3b4df85c60a589a682947b72ec943 | |
| parent | b8d6171cb00c28e4c90e58e101554097003b59d3 (diff) | |
| download | st-dc74c4f729a4350267f269c767aa6e377d8d4fbc.tar.gz st-dc74c4f729a4350267f269c767aa6e377d8d4fbc.zip | |
typedefs instead of #defines
Replaced #defines with typedefs where possible, patch attached.
| -rw-r--r-- | st.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -36,10 +36,6 @@ char *argv0; | |||
| 36 | 36 | ||
| 37 | #define Glyph Glyph_ | 37 | #define Glyph Glyph_ |
| 38 | #define Font Font_ | 38 | #define Font Font_ |
| 39 | #define Draw XftDraw * | ||
| 40 | #define Colour XftColor | ||
| 41 | #define Colourmap Colormap | ||
| 42 | #define Rectangle XRectangle | ||
| 43 | 39 | ||
| 44 | #if defined(__linux) | 40 | #if defined(__linux) |
| 45 | #include <pty.h> | 41 | #include <pty.h> |
| @@ -180,6 +176,10 @@ typedef unsigned int uint; | |||
| 180 | typedef unsigned long ulong; | 176 | typedef unsigned long ulong; |
| 181 | typedef unsigned short ushort; | 177 | typedef unsigned short ushort; |
| 182 | 178 | ||
| 179 | typedef XftDraw *Draw; | ||
| 180 | typedef XftColor Colour; | ||
| 181 | typedef Colormap Colourmap; | ||
| 182 | |||
| 183 | typedef struct { | 183 | typedef struct { |
| 184 | char c[UTF_SIZ]; /* character code */ | 184 | char c[UTF_SIZ]; /* character code */ |
| 185 | ushort mode; /* attribute flags */ | 185 | ushort mode; /* attribute flags */ |
| @@ -3110,7 +3110,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { | |||
| 3110 | FcCharSet *fccharset; | 3110 | FcCharSet *fccharset; |
| 3111 | Colour *fg, *bg, *temp, revfg, revbg, truefg, truebg; | 3111 | Colour *fg, *bg, *temp, revfg, revbg, truefg, truebg; |
| 3112 | XRenderColor colfg, colbg; | 3112 | XRenderColor colfg, colbg; |
| 3113 | Rectangle r; | 3113 | XRectangle r; |
| 3114 | int oneatatime; | 3114 | int oneatatime; |
| 3115 | 3115 | ||
| 3116 | frcflags = FRC_NORMAL; | 3116 | frcflags = FRC_NORMAL; |
