Skip to content

Commit

Permalink
Follow the suckless coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
planet36 committed May 6, 2021
1 parent 4e6e0ea commit 5b6bff6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions st.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
#define STR_ARG_SIZ ESC_ARG_SIZ

/* macros */
#define IS_SET(flag) ((term.mode & (flag)) != 0)
#define ISCONTROLC0(c) (BETWEEN(c, 0, 0x1f) || (c) == 0x7f)
#define ISCONTROLC1(c) (BETWEEN(c, 0x80, 0x9f))
#define ISCONTROL(c) (ISCONTROLC0(c) || ISCONTROLC1(c))
#define ISDELIM(u) ((u) && wcschr(worddelimiters, u))
#define IS_SET(flag) ((term.mode & (flag)) != 0)
#define ISCONTROLC0(c) (BETWEEN(c, 0, 0x1f) || (c) == 0x7f)
#define ISCONTROLC1(c) (BETWEEN(c, 0x80, 0x9f))
#define ISCONTROL(c) (ISCONTROLC0(c) || ISCONTROLC1(c))
#define ISDELIM(u) ((u) && wcschr(worddelimiters, u))

enum term_mode {
MODE_WRAP = 1 << 0,
Expand Down
8 changes: 4 additions & 4 deletions x.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ static void ttysend(const Arg *);
#define XEMBED_FOCUS_OUT 5

/* macros */
#define IS_SET(flag) ((win.mode & (flag)) != 0)
#define TRUERED(x) (((x) & 0xff0000) >> 8)
#define TRUEGREEN(x) (((x) & 0xff00))
#define TRUEBLUE(x) (((x) & 0xff) << 8)
#define IS_SET(flag) ((win.mode & (flag)) != 0)
#define TRUERED(x) (((x) & 0xff0000) >> 8)
#define TRUEGREEN(x) (((x) & 0xff00))
#define TRUEBLUE(x) (((x) & 0xff) << 8)

typedef XftDraw *Draw;
typedef XftColor Color;
Expand Down

0 comments on commit 5b6bff6

Please sign in to comment.