From 68ce8a39144e339648ac30816e855d2c1f2cd63b Mon Sep 17 00:00:00 2001 From: --unset <--unset> Date: Thu, 5 Nov 2020 18:00:50 +0100 Subject: [PATCH] Added header guards; fixed linter errors --- src/arg.h | 4 ++-- src/st/st.h | 6 ++++++ src/win.h | 7 +++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/arg.h b/src/arg.h index a22e019..dbdef84 100644 --- a/src/arg.h +++ b/src/arg.h @@ -3,8 +3,8 @@ * by 20h */ -#ifndef ARG_H__ -#define ARG_H__ +#ifndef ARG_H +#define ARG_H extern char *argv0; diff --git a/src/st/st.h b/src/st/st.h index 3d351b6..1750b14 100644 --- a/src/st/st.h +++ b/src/st/st.h @@ -1,7 +1,11 @@ /* See LICENSE for license details. */ +#ifndef ST_H +#define ST_H + #include #include +#include /* macros */ #define MIN(a, b) ((a) < (b) ? (a) : (b)) @@ -123,3 +127,5 @@ extern char *termname; extern unsigned int tabspaces; extern unsigned int defaultfg; extern unsigned int defaultbg; + +#endif diff --git a/src/win.h b/src/win.h index e6e4369..1d6e355 100644 --- a/src/win.h +++ b/src/win.h @@ -1,5 +1,10 @@ /* See LICENSE for license details. */ +#ifndef WIN_H +#define WIN_H + +#include "st/st.h" + enum win_mode { MODE_VISIBLE = 1 << 0, MODE_FOCUSED = 1 << 1, @@ -38,3 +43,5 @@ void xsetpointermotion(int); void xsetsel(char *); int xstartdraw(void); void xximspot(int, int); + +#endif