aboutsummaryrefslogtreecommitdiffstats
path: root/epan/slab.h
AgeCommit message (Collapse)AuthorFilesLines
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-04-22Add some casts to squelch complaints about alignment; our little slabGuy Harris1-2/+2
allocator should return properly-aligned items. svn path=/trunk/; revision=36799
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-07-04Instead of using pointer casts in the slab allocator stuff, add aGuy Harris1-25/+24
"SLAB_ITEM_TYPE_DEFINE()" macro to define a union of the type of object for the slab and a pointer to an object of that union type, and use that type for items on the slab allocator free lists; that *should* avoid having the compiler think two pointers to an item being added to or removed from the free list don't point to the same object just because they have different types. svn path=/trunk/; revision=11306
2004-07-04Make the "SLAB_ALLOC()" and "SLAB_FREE()" macros take the type of theGuy Harris1-12/+24
object being allocated, rather than the name of the free list, as an argument (with the name of the free list constructed from the name of the type), and add macros to define and declare the free list, also taking the type of the object being allocated. svn path=/trunk/; revision=11305
2003-12-03Instead of requiring slab-allocated structures to have a "next" pointer,Guy Harris1-12/+26
when adding them to the free list, cast the pointer to the structure to a pointer to a "freed_item_t" which contains the "next" pointer. This reduces the memory requirement for some of those structures, and leaves us free to slab-allocate structures that have a "next" pointer for other reasons. svn path=/trunk/; revision=9150
2003-12-02Moving SLAB_ALLOC and SLAB_FREE to its own header fileRonnie Sahlberg1-0/+50
svn path=/trunk/; revision=9139