diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-08-24 19:45:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-08-24 19:45:28 +0000 |
commit | 6e56c25c9d3008168a0a354e63fb034a7c33ee9d (patch) | |
tree | 36f6a2878bbfcc97aeb97b89e828348674cffbaf /epan/dfilter | |
parent | fedaad1874b3bd34e1b0908f68557bcac5a5ebc7 (diff) | |
download | wireshark-6e56c25c9d3008168a0a354e63fb034a7c33ee9d.tar.gz |
From Ulf Lamping: add a new FT_FLOAT type, for single-precision
floating-point numbers, and display all the significant digits for both
single-precision and double-precision floating-point numbers in the
protocol tree, not just what "%g" does (6 digits).
Put in comments explaining how the length of filter strings is computed,
and fix some of the computations.
svn path=/trunk/; revision=6081
Diffstat (limited to 'epan/dfilter')
-rw-r--r-- | epan/dfilter/semcheck.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dfilter/semcheck.c b/epan/dfilter/semcheck.c index 87c3a41158..871ca2fff8 100644 --- a/epan/dfilter/semcheck.c +++ b/epan/dfilter/semcheck.c @@ -1,5 +1,5 @@ /* - * $Id: semcheck.c,v 1.11 2002/05/09 23:50:30 gram Exp $ + * $Id: semcheck.c,v 1.12 2002/08/24 19:45:26 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -47,6 +47,7 @@ compatible_ftypes(ftenum_t a, ftenum_t b) switch (a) { case FT_NONE: case FT_PROTOCOL: + case FT_FLOAT: case FT_DOUBLE: case FT_ABSOLUTE_TIME: case FT_RELATIVE_TIME: @@ -133,6 +134,7 @@ mk_fvalue_from_val_string(header_field_info *hfinfo, char *s) switch(hfinfo->type) { case FT_NONE: case FT_PROTOCOL: + case FT_FLOAT: case FT_DOUBLE: case FT_ABSOLUTE_TIME: case FT_RELATIVE_TIME: @@ -220,6 +222,7 @@ is_bytes_type(enum ftenum type) case FT_NONE: case FT_PROTOCOL: + case FT_FLOAT: case FT_DOUBLE: case FT_ABSOLUTE_TIME: case FT_RELATIVE_TIME: |