[hackers] [dwm][PATCH] Alphabetized functions and macros in util

From: Christopher Drelich <cd_AT_cdrakka.com>
Date: Wed, 2 May 2018 18:55:43 -0400

Alphabetizing of functions and macros in util.c/util.h

---
diff --git a/util.c b/util.c
index 40d234e..3563b91 100644
--- a/util.c
+++ b/util.c
_AT_@ -7,16 +7,6 @@
 #include "util.h"
-void *
-ecalloc(size_t nmemb, size_t size)
-{
- void *p;
-
- if (!(p = calloc(nmemb, size)))
- die("calloc:");
- return p;
-}
-
 void
 die(const char *fmt, ...) {
  va_list ap;
_AT_@ -34,3 +24,13 @@ die(const char *fmt, ...) {
  exit(1);
 }
+
+void *
+ecalloc(size_t nmemb, size_t size)
+{
+        void *p;
+
+        if (!(p = calloc(nmemb, size)))
+                die("calloc:");
+        return p;
+}
diff --git a/util.h b/util.h
index f633b51..4ffbf27 100644
--- a/util.h
+++ b/util.h
_AT_@ -1,8 +1,8 @@
 /* See LICENSE file for copyright and license details. */
+#define BETWEEN(X, A, B)        ((A) <= (X) && (X) <= (B))
 #define MAX(A, B)               ((A) > (B) ? (A) : (B))
 #define MIN(A, B)               ((A) < (B) ? (A) : (B))
-#define BETWEEN(X, A, B)        ((A) <= (X) && (X) <= (B))
 void die(const char *fmt, ...);
 void *ecalloc(size_t nmemb, size_t size);
Received on Thu May 03 2018 - 00:55:43 CEST

This archive was generated by hypermail 2.3.0 : Thu May 03 2018 - 01:00:45 CEST