From Jakub Zawadzki via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4140 :
authorJeff Morriss <jeff.morriss@ulticom.com>
Mon, 19 Oct 2009 22:31:08 +0000 (22:31 -0000)
committerJeff Morriss <jeff.morriss@ulticom.com>
Mon, 19 Oct 2009 22:31:08 +0000 (22:31 -0000)
commitab13546f71b4ffc411208ba6f676581a8686abb3
tree9c1ec60f54fe7779a3420e958e94f168c8851526
parent288927bc468b5aa34cbcfc0cbf93b9e917ceafec
From Jakub Zawadzki via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4140 :

There is emem_header_t struct, so IMHO is better to use struct instead of
global variables.

Split emem_alloc() into two functions: emem_alloc_chunk and emem_alloc_glib.
Current allocator is available in emem_header_t.memory_alloc

It should be easier to develop new memory allocator and maintain current.
It might also give some speedup (we don't need to check mem->debug_use_chunks
every time :)

From me:

Initialize emem_header_t.trees.  Some indentation cleanup.

svn path=/trunk/; revision=30624
epan/emem.c