Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan proto.c proto.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: Thu, 4 Dec 2003 04:59:34 -0600 (CST)
guy         2003/12/04 04:59:34 CST

  Modified files:
    epan                 proto.c proto.h 
  Log:
  Don't use GNodes for the protocol tree, put the sibling pointer, and
  pointers to the first *and* last child, in the "proto_node" structure
  itself.  That saves us one level of indirection and memory allocation,
  and lets us append to a tree by appending to the last child directly,
  rather than having to scan through the list of siblings of the first
  child to find the end of that list.
  
  Revision  Changes    Path
  1.124     +117 -25   ethereal/epan/proto.c
  1.52      +13 -9     ethereal/epan/proto.h