Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan proto.c slab.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: guy@xxxxxxxxxxxx (Guy Harris)
Date: Sat, 3 Jul 2004 21:29:43 -0500 (CDT)
guy         2004/07/03 21:29:43 CDT

  Modified files:
    epan                 proto.c slab.h 
  Log:
  Instead of using pointer casts in the slab allocator stuff, add a
  "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.
  
  Revision  Changes    Path
  1.134     +4 -1      ethereal/epan/proto.c
  1.4       +24 -25    ethereal/epan/slab.h