diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-10-16 23:32:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-10-16 23:32:24 +0000 |
commit | 727ad67453a879a58ab46adeee058d2acbbe5c13 (patch) | |
tree | 9fe0f60bac0ddcee9a3c48d3ff0ca8003b3ca707 /epan/prefs-int.h | |
parent | de1bcd5d88f4ecd85df770ef5a7a0357b539ee4f (diff) |
Remove the fixed maximum number of subranges in a range_t; dynamically
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
Diffstat (limited to 'epan/prefs-int.h')
-rw-r--r-- | epan/prefs-int.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/prefs-int.h b/epan/prefs-int.h index e3b5617301..cbcec1d52a 100644 --- a/epan/prefs-int.h +++ b/epan/prefs-int.h @@ -68,14 +68,14 @@ struct preference { gboolean *boolp; gint *enump; char **string; - range_t *rangep; + range_t **range; } varp; /* pointer to variable storing the value */ union { guint uint; gboolean boolval; gint enumval; char *string; - range_t rangeval; + range_t *range; } saved_val; /* original value, when editing from the GUI */ union { guint base; /* input/output base, for PREF_UINT */ |