X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Farray.c;h=af66edd9305580aea5b53471a00a1300bfe0aaac;hp=0fa960857dda156fe1ee8eeaf7ae8ec4040403c6;hb=b130b35f48d19450240748425e12d21f2c38350f;hpb=23ce0393b23779f19d6d56103c46f9d929fdef53 diff --git a/src/ngircd/array.c b/src/ngircd/array.c index 0fa96085..af66edd9 100644 --- a/src/ngircd/array.c +++ b/src/ngircd/array.c @@ -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 - #include #include +#include -#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) {