aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-25 10:07:49 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-25 10:07:49 +0200
commit32d4668f128cb65de70f518db3ff84c8c20bbdd5 (patch)
tree2e56f5b4df3d0a7df61b0e1a6bbc3c3bc0283ce7 /src/libmdsserver
parentm doc (diff)
downloadmds-32d4668f128cb65de70f518db3ff84c8c20bbdd5.tar.gz
mds-32d4668f128cb65de70f518db3ff84c8c20bbdd5.tar.bz2
mds-32d4668f128cb65de70f518db3ff84c8c20bbdd5.tar.xz
m doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/libmdsserver')
-rw-r--r--src/libmdsserver/macros.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h
index bdbd537..255accd 100644
--- a/src/libmdsserver/macros.h
+++ b/src/libmdsserver/macros.h
@@ -297,10 +297,10 @@
/**
* `malloc` wrapper that returns whether the allocation was not successful
*
- * @param var The variable to which to assign the allocation
- * @param elements The number of elements to allocate
- * @param type The data type of the elements for which to create an allocation
- * @return :int Evaluates to true if an only if the allocation failed
+ * @param var:type* The variable to which to assign the allocation
+ * @param elements:size_t The number of elements to allocate
+ * @param type The data type of the elements for which to create an allocation
+ * @return :int Evaluates to true if an only if the allocation failed
*/
#define xmalloc(var, elements, type) \
((var = malloc((elements) * sizeof(type))) == NULL)
@@ -309,10 +309,10 @@
/**
* `calloc` wrapper that returns whether the allocation was not successful
*
- * @param var The variable to which to assign the allocation
- * @param elements The number of elements to allocate
- * @param type The data type of the elements for which to create an allocation
- * @return :int Evaluates to true if an only if the allocation failed
+ * @param var:type* The variable to which to assign the allocation
+ * @param elements:size_t The number of elements to allocate
+ * @param type The data type of the elements for which to create an allocation
+ * @return :int Evaluates to true if an only if the allocation failed
*/
#define xcalloc(var, elements, type) \
((var = calloc(elements, sizeof(type))) == NULL)
@@ -321,10 +321,10 @@
/**
* `remalloc` wrapper that returns whether the allocation was not successful
*
- * @param var The variable to which to assign the reallocation
- * @param elements The number of elements to allocate
- * @param type The data type of the elements for which to create an allocation
- * @return :int Evaluates to true if an only if the allocation failed
+ * @param var:type* The variable to which to assign the reallocation
+ * @param elements:size_t The number of elements to allocate
+ * @param type The data type of the elements for which to create an allocation
+ * @return :int Evaluates to true if an only if the allocation failed
*/
#define xrealloc(var, elements, type) \
((var = realloc(var, (elements) * sizeof(type))) == NULL)
@@ -333,11 +333,11 @@
/**
* Double to the size of an allocation on the heap
*
- * @param old Variable in which to store the old value temporarily
- * @param var The variable to which to assign the reallocation
- * @param elements The number of elements to allocate
- * @param type The data type of the elements for which to create an allocation
- * @return :int Evaluates to true if an only if the allocation failed
+ * @param old:type* Variable in which to store the old value temporarily
+ * @param var:type* The variable to which to assign the reallocation
+ * @param elements:size_t The number of elements to allocate
+ * @param type The data type of the elements for which to create an allocation
+ * @return :int Evaluates to true if an only if the allocation failed
*/
#define growalloc(old, var, elements, type) \
(old = var, xrealloc(var, (elements) <<= 1, type) ? (var = old, (elements) >>= 1, perror(*argv), 1) : 0)