Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan proto.c proto.h 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: Wed, 3 Dec 2003 02:53:37 -0600 (CST)
guy         2003/12/03 02:53:37 CST

  Modified files:
    epan                 proto.c proto.h slab.h 
  Log:
  Instead of requiring slab-allocated structures to have a "next" pointer,
  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.
  
  Revision  Changes    Path
  1.121     +7 -7      ethereal/epan/proto.c
  1.50      +1 -3      ethereal/epan/proto.h
  1.2       +26 -12    ethereal/epan/slab.h