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

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: Tue, 12 Oct 1999 00:01:03 -0500 (CDT)
guy         1999/10/12 00:00:58 CDT

  Modified files:
    .                    dfilter.h file.c colors.c dfilter.c 
  Log:
  Have "dfilter_compile()" return 0 on success and 1 on failure, and
  return the pointer to the compiled filter through a pointer argument.
  
  Have it check whether the filter is a null filter and, if so, free up
  the filter and supply a filter pointer, rather than obliging its callers
  to check whether the filter actually has any code.  (Well, they may want
  to check if the filter is null, so that they don't save a pointer to the
  filter text, e.g. so that the display filter displays as "none" rather
  than as a blank string in the summary box.)
  
  In the process, fix the check in "gtk/file_dlg.c" that tests whether the
  read filter compiled successfully.
  
  Revision  Changes    Path
  1.14      +2 -4      ethereal/dfilter.h
  1.108     +11 -16    ethereal/file.c
  1.14      +7 -10     ethereal/colors.c
  1.30      +25 -10    ethereal/dfilter.c