Ethereal-dev: Re: [ethereal-dev] Preposal: ethereal.conf

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Wed, 5 Jul 2000 02:59:18 -0700
On Sat, Jul 01, 2000 at 01:31:20PM -0500, David Frascone wrote:
> It does need several enhancements though:
> 
> 1)	It needs to cache entries (right now it parses the file on EVERY
> 	lookup.)

In the code I checked in, when you register a preference you specify a
variable that contains its value; that variable is set when the
preferences files are read, so you don't have to re-read the files, and
is also set by "-o" flags and the "Preferences" dialog box.

> 2)	It needs a smart parser (very dumb non-white space friendly one now)

The code I checked in uses the existing preferences-file parser (as the
registered preferences show up in the same files that the existing
preferences show up in); that parser handles white space.

> 3)	It needs to be upgraded to whatever formate we decide, and needs
> 	to be checked under windows versions.  (I can only build/install
> 	the unix version)

I'll check tomorrow whether it works on Windows; it might require us to
supply a version of "strcasecmp()" for some platforms, possibly
including Win32 and some UNIX platforms, as it uses "strcasecmp()" to
check True/False strings for Booleans and strings for enumerated values.