Ethereal-dev: Re: [Ethereal-dev] range preference type

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

From: Jeff Morriss <jeff.morriss@xxxxxxxxxxx>
Date: Thu, 14 Oct 2004 18:31:48 -0400

Guy Harris wrote:

Jeff Morriss wrote:

I don't have a strong preference for the string-based API--I just thought it was cleaner. Should I change it?


I find a range_t-based API cleaner - especially now that I've added code to prefs.c so that it checks whether integral preferences have valid values before fetching the preferences, and puts up an alert box reporting the error. The same should be done for range values.

Okay--the attached patch does it that way (including a basic range validity check).

Attachment: range_preference_take2.patch.gz
Description: GNU Zip compressed data