aboutsummaryrefslogtreecommitdiffstats
path: root/epan/slab.h
Commit message (Collapse)AuthorAgeFilesLines
* name changeRonnie Sahlberg2006-05-211-2/+2
| | | | svn path=/trunk/; revision=18197
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-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
* Instead of using pointer casts in the slab allocator stuff, add aGuy Harris2004-07-041-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
* Make the "SLAB_ALLOC()" and "SLAB_FREE()" macros take the type of theGuy Harris2004-07-041-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
* Instead of requiring slab-allocated structures to have a "next" pointer,Guy Harris2003-12-031-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
* Moving SLAB_ALLOC and SLAB_FREE to its own header fileRonnie Sahlberg2003-12-021-0/+50
svn path=/trunk/; revision=9139