X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Farray.c;h=ad4f8dac7cda4a57fd5f57a4901829872900e4ac;hp=0fa960857dda156fe1ee8eeaf7ae8ec4040403c6;hb=32f63abb59b5c9f47b4d517e0bbf9cc73fd044dc;hpb=23ce0393b23779f19d6d56103c46f9d929fdef53 diff --git a/src/ngircd/array.c b/src/ngircd/array.c index 0fa96085..ad4f8dac 100644 --- a/src/ngircd/array.c +++ b/src/ngircd/array.c @@ -5,15 +5,18 @@ * (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 @@ -22,9 +25,9 @@ /* 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) {