]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/array.c
Update #include's: remove unused and add missing ones
[ngircd-alex.git] / src / ngircd / array.c
index 0fa960857dda156fe1ee8eeaf7ae8ec4040403c6..af66edd9305580aea5b53471a00a1300bfe0aaac 100644 (file)
@@ -5,26 +5,32 @@
  * (at your option) any later version.
  * Please read the file COPYING, README and AUTHORS for more information.
  *
- * functions to dynamically allocate arrays.
+ * libarray - dynamically allocate arrays.
  * Copyright (c) 2005 Florian Westphal (westphal@foo.fh-furtwangen.de)
- *
+ */
+
+/**
+ * @file
+ * Functions to dynamically allocate arrays.
  */
 
 #include "array.h"
 
 #include <assert.h>
-
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
-#include "log.h"
+#ifdef DEBUG_ARRAY
+# include "log.h"
+#endif
 
 /* Enable more Debug messages in alloc / append / memmove code. */
 /* #define DEBUG_ARRAY */
 
+#define array_UNUSABLE(x)      ( !(x)->mem )
 
 
-#define array_UNUSABLE(x)      ( !(x)->mem )
 static bool
 safemult_sizet(size_t a, size_t b, size_t *res)
 {