Evan Huus
b636b88646
Expose the new wmem API functions, and use a consistent order of
...
alloc/free/realloc across all of wmem.
svn path=/trunk/; revision=47548
2013-02-08 01:47:48 +00:00
Evan Huus
21453d5db6
Add three more slots to the wmem allocater definition (not yet implemented
...
by any particular allocator) and better document the entire structure.
svn path=/trunk/; revision=47163
2013-01-19 16:15:32 +00:00
Evan Huus
bb3b34d7bf
Pre-declare just the enum, and not the typedef to avoid redefinition warnings.
...
svn path=/trunk/; revision=46818
2012-12-27 22:59:29 +00:00
Evan Huus
dc98756ca4
Store the type of each wmem allocator.
...
svn path=/trunk/; revision=46814
2012-12-27 22:31:42 +00:00
Evan Huus
82501433e3
Use const in wmem where possible.
...
svn path=/trunk/; revision=45976
2012-11-08 23:18:26 +00:00
Evan Huus
2ea364607a
Make the allocator destructor part of wmem_allocator_t. This avoids two
...
potential bugs:
- calling the wrong destroy function on an allocator
- a pool allocator forgetting to call free_all on itself in the destructor
Also, fix potential typedef redefinition warning in wmem_allocator_glib.h
svn path=/trunk/; revision=45804
2012-10-27 02:29:46 +00:00
Guy Harris
7079f979c3
We're no longer defining the structure in a typedef definition, so we
...
don't want the typedef name after the structure definition.
svn path=/trunk/; revision=45752
2012-10-24 05:37:15 +00:00
Guy Harris
c1e2438551
Have wmem_core.h define the wmem_allocator_t typedef, with an incomplete
...
structure definition of struct _wmem_allocator_t; have wmem_allocator.h
give the complete structure definition. That avoids complaints about
the typedef being redefined.
svn path=/trunk/; revision=45750
2012-10-24 05:21:43 +00:00
Evan Huus
84cc3daa3b
Basic skeleton for wmem.
...
https://www.wireshark.org/lists/wireshark-dev/201210/msg00178.html
svn path=/trunk/; revision=45746
2012-10-24 02:04:40 +00:00