diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2015-05-27 03:45:30 +0200 |
|---|---|---|
| committer | Christian Franke <nobody@nowhere.ws> | 2016-09-19 17:52:05 +0200 |
| commit | 3b4cd7837562cd78fe80bde94f5aa6729b2f755d (patch) | |
| tree | 236c4d7616d4e5aacede3398ec2975b734929874 /lib/memory_vty.h | |
| parent | 6ba26ad5d2bc863917914db0d8354eb834bba264 (diff) | |
lib: add new extensible memory-type handling
This rewrites Quagga's memory per-type allocation counting, without
using a fixed global list of types. Instead, source files can declare
memory types which get handled through constructor functions called by
the dynamic linker during startup.
Acked-by: Vincent JARDIN <vincent.jardin@6wind.com>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
[DL: v3: forgot "nonnull" attribute on XFREE]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/memory_vty.h')
| -rw-r--r-- | lib/memory_vty.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/memory_vty.h b/lib/memory_vty.h index 4d7601607a..d691b9b2b8 100644 --- a/lib/memory_vty.h +++ b/lib/memory_vty.h @@ -21,8 +21,6 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #ifndef _ZEBRA_MEMORY_VTY_H #define _ZEBRA_MEMORY_VTY_H -#define array_size(ar) (sizeof(ar) / sizeof(ar[0])) - /* For pretty printing of memory allocate information. */ struct memory_list { |
