diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-14 19:29:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-14 19:29:45 +0400 |
commit | e4cfcdc3a601b6f2114000075cc0541930adcec6 (patch) | |
tree | 0e6078724974a41a76d2ae741e8f7b4293c99b33 /intern | |
parent | fc3cd6eb801d6c9a6a95d63198f0c815d4deb072 (diff) |
header comment cleanup, explain whats the difference between confusingly named drarnode.c and node_draw.c.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/guardedalloc/MEM_guardedalloc.h | 29 | ||||
-rw-r--r-- | intern/guardedalloc/intern/mallocn.c | 7 |
2 files changed, 19 insertions, 17 deletions
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h index dfb3fe69474..65ce7baba1e 100644 --- a/intern/guardedalloc/MEM_guardedalloc.h +++ b/intern/guardedalloc/MEM_guardedalloc.h @@ -20,19 +20,19 @@ * * The Original Code is: all of this file. * - * Contributor(s): none yet. + * Contributor(s): Brecht Van Lommel + * Campbell Barton * * ***** END GPL LICENSE BLOCK ***** */ -/** \file MEM_guardedalloc.h - * \ingroup MEM +/** + * \file MEM_guardedalloc.h + * \ingroup MEM + * + * \author Copyright (C) 2001 NaN Technologies B.V. + * \brief Read \ref MEMPage * - * \author Copyright (C) 2001 NaN Technologies B.V. - * \brief Read \ref MEMPage - */ - -/** * \page MEMPage Guarded memory(de)allocation * * \section aboutmem c-style guarded memory allocation @@ -118,8 +118,9 @@ extern "C" { __attribute__((alloc_size(1))) #endif ; - - /** Allocate a block of memory of size len, with tag name str. The + + /** + * Allocate a block of memory of size len, with tag name str. The * name must be a static, because only a pointer to it is stored ! * */ void *MEM_mallocN(size_t len, const char *str) @@ -129,8 +130,9 @@ extern "C" { __attribute__((alloc_size(1))) #endif ; - - /** Same as callocN, clears memory and uses mmap (disk cached) if supported. + + /** + * Same as callocN, clears memory and uses mmap (disk cached) if supported. * Can be free'd with MEM_freeN as usual. * */ void *MEM_mapallocN(size_t len, const char *str) @@ -171,7 +173,8 @@ extern "C" { /** Attempt to enforce OSX (or other OS's) to have malloc and stack nonzero */ void MEM_set_memory_debug(void); - /** Memory usage stats + /** + * Memory usage stats * - MEM_get_memory_in_use is all memory * - MEM_get_mapped_memory_in_use is a subset of all memory */ uintptr_t MEM_get_memory_in_use(void); diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index 7eda5a3ab5e..76df58f4a50 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -20,7 +20,8 @@ * * The Original Code is: all of this file. * - * Contributor(s): none yet. + * Contributor(s): Brecht Van Lommel + * Campbell Barton * * ***** END GPL LICENSE BLOCK ***** */ @@ -904,6 +905,4 @@ const char *MEM_name_ptr(void *vmemh) return "MEM_name_ptr(NULL)"; } } -#endif - -/* eof */ +#endif /* NDEBUG */ |