summaryrefslogtreecommitdiffstats
path: root/nsxiv.h
diff options
context:
space:
mode:
authorBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-10-11 05:07:18 +0200
committerGitHub <noreply@github.com>2021-10-11 05:07:18 +0200
commit1449bfc5e960a61438c60a67c28da6d7c5bf2c7f (patch)
tree8836a07412b26650aa5773bd6ccf9d1a474553d6 /nsxiv.h
parent675db4bbb646ff51cc3ecc8ba7d587670872580a (diff)
downloadnsxiv-1449bfc5e960a61438c60a67c28da6d7c5bf2c7f.tar.zst
code-style: fix consistency issues all over the codebase (#94)
* remove duplicate comment * remove empty tabs and blank lines * move macros and globals ontop * comment to seprate function implementation * fix alignment * switch to *argv[] similar to other suckless code * kill all empty last lines * append comment to endif * reuse existing ARRLEN macro * comment fall through * use while (true) everywhere Co-authored-by: NRK <nrk@disroot.org>
Diffstat (limited to 'nsxiv.h')
-rw-r--r--nsxiv.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/nsxiv.h b/nsxiv.h
index 716b24d..6ae2289 100644
--- a/nsxiv.h
+++ b/nsxiv.h
@@ -33,15 +33,9 @@
*/
#define CLEANUP
-#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
-#endif
-#ifndef MAX
#define MAX(a,b) ((a) > (b) ? (a) : (b))
-#endif
-#ifndef ABS
#define ABS(a) ((a) > 0 ? (a) : -(a))
-#endif
#define ARRLEN(a) (sizeof(a) / sizeof((a)[0]))
@@ -465,4 +459,3 @@ void win_set_cursor(win_t*, cursor_t);
void win_cursor_pos(win_t*, int*, int*);
#endif /* NSXIV_H */
-