summaryrefslogtreecommitdiffstats
path: root/common/eurephia_nullsafe.h
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-09-07 22:53:21 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-09-07 22:53:21 +0200
commit55f75cd2678f249c5503109798a69fbbc01936af (patch)
treecc6ed3e16a661ad3d2f68888dd94672580aec6e7 /common/eurephia_nullsafe.h
parent2e1851802188515f8edeed8eb3f753cf69e348d9 (diff)
downloadeurephia-55f75cd2678f249c5503109798a69fbbc01936af.tar.gz
eurephia-55f75cd2678f249c5503109798a69fbbc01936af.tar.xz
eurephia-55f75cd2678f249c5503109798a69fbbc01936af.zip
Fixed comments to malloc_nullsafe() and free_nullsafe()
Diffstat (limited to 'common/eurephia_nullsafe.h')
-rw-r--r--common/eurephia_nullsafe.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/common/eurephia_nullsafe.h b/common/eurephia_nullsafe.h
index 70c09d3..5f6b58c 100644
--- a/common/eurephia_nullsafe.h
+++ b/common/eurephia_nullsafe.h
@@ -72,14 +72,13 @@
void *__malloc_nullsafe(eurephiaCTX *, size_t, const char *, int);
/**
- * calloc() wrapper. Should replace the use of malloc() and memset(). This
- * function uses calloc internally, which results in the memory region being zero'd
- * by the kernel on allocation.
+ * Front-end macro for the __malloc_nullsafe() function.
*
* @param ctx eurephiaCTX (used for debugg logging)
- * @param size Size of the memory region wanted
+ * @param sz Size of the memory region wanted
*
* @return Returns a pointer to the memory region on success, otherwise NULL.
+ *
*/
#define malloc_nullsafe(ctx, sz) __malloc_nullsafe(ctx, sz, __FILE__, __LINE__)
@@ -87,9 +86,9 @@ void *__malloc_nullsafe(eurephiaCTX *, size_t, const char *, int);
void inline __free_nullsafe(eurephiaCTX *ctx, void *ptr, const char *file, int line);
/**
- * free() wrapper. Frees memory allocated by malloc() or calloc(). It also sets the
- * input pointer to NULL on success.
+ * Front-end macro for the __free_nullsafe() function.
*
+ * @param ctx eurephiaCTX (used for debugg logging)
* @param ptr Pointer to the memory region being freed.
*
*/