Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal summary.c colors.c file.h dfilter.h

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 11 Oct 1999 01:39:22 -0500 (CDT)
guy         1999/10/11 01:39:18 CDT

  Modified files:
    .                    summary.c colors.c file.h dfilter.h 
                         dfilter-int.h dfilter-grammar.y dfilter.c 
                         file.c 
  Log:
  When a new display filter is to be applied, don't set "cf.dfilter" or
  "cf.dfcode" if the new filter doesn't compile, because the filter
  currently in effect will be the one that was last applied - just free up
  the text of the new filter, and whatever memory was allocated for the
  new filter code.
  
  This means we allocate a new dfilter when a new filter is to be applied,
  rather than recycling stuff from the old filter, as we want the old
  filter code to remain around if the new filter doesn't compile.
  
  This means that "cf.dfilter" and "cf.dfcode" will be null if there's no
  filter in effect.
  
  Revision  Changes    Path
  1.13      +3 -3      ethereal/summary.c
  1.13      +9 -14     ethereal/colors.c
  1.49      +3 -5      ethereal/file.h
  1.11      +3 -7      ethereal/dfilter.h
  1.8       +1 -2      ethereal/dfilter-int.h
  1.22      +2 -22     ethereal/dfilter-grammar.y
  1.26      +41 -96    ethereal/dfilter.c
  1.105     +43 -11    ethereal/file.c