aboutsummaryrefslogtreecommitdiffstats
path: root/epan/range.c
AgeCommit message (Collapse)AuthorFilesLines
2004-10-17Have "range_convert_range()" dynamically allocate a string large enoughGuy Harris1-31/+41
to hold the representation of the range, rather than imposing a fixed-size limit on the string. Check for overflow in "strtoul()" - and use "strtoul()" rather than "strtol()" for range members. Clean up indentation. Get rid of an unnecessary include in <epan/range.h>. svn path=/trunk/; revision=12323
2004-10-16Remove the fixed maximum number of subranges in a range_t; dynamicallyGuy Harris1-131/+191
allocate them to be large enough. Add checks that the numbers in the range fit in a guint32. Check the validity of a range before saving or printing, and report errors in an alert box. Clean up white space. svn path=/trunk/; revision=12320
2004-10-16Make the nranges member of a range_t be the number of ranges, not theGuy Harris1-127/+93
number of ranges - 1, and update loops that iterate over all the ranges appropriately. Make "range_convert_str()" return a success/failure indication, and check it. Rewrite it to do more checks, and not to blithely ignore unknown characters. svn path=/trunk/; revision=12313
2004-10-14From Jeff Morriss: PREF_RANGE preference type, for ranges of integers.Guy Harris1-1/+59
svn path=/trunk/; revision=12300
2004-09-04We don't need "globals.h"; don't include it.Guy Harris1-2/+0
svn path=/trunk/; revision=11896
2004-09-04Split the pure range stuff out into separate files, exporting their ownGuy Harris1-0/+260
functions. svn path=/trunk/; revision=11892