aboutsummaryrefslogtreecommitdiffstats
path: root/epan/strutil.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2003-07-04 03:41:00 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2003-07-04 03:41:00 +0000
commit803619a6dd463dc8ac88d2949a0218eddc0c39b3 (patch)
treeeaf1b63240b27df49a7e8b355cea2b838c396920 /epan/strutil.h
parent8a8ea353c8c0a1ddd60b8f6ec5908f63ecca8db7 (diff)
Use FLT_DIG and DBL_DIG from float.h to create printf-style print format
for FT_FLOAT and FT_DOUBLE values. svn path=/trunk/; revision=7962
Diffstat (limited to 'epan/strutil.h')
-rw-r--r--epan/strutil.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/strutil.h b/epan/strutil.h
index 6c03e32810..78aabe3dd2 100644
--- a/epan/strutil.h
+++ b/epan/strutil.h
@@ -1,7 +1,7 @@
/* strutil.h
* String utility definitions
*
- * $Id: strutil.h,v 1.9 2002/08/28 20:40:45 jmayer Exp $
+ * $Id: strutil.h,v 1.10 2003/07/04 03:41:00 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -34,4 +34,9 @@ int get_token_len(const guchar *linep, const guchar *lineend,
gchar* format_text(const guchar *line, int len);
gchar* bytes_to_str(const guint8 *, int);
gchar* bytes_to_str_punct(const guint8 *, int, gchar punct);
+
+/* Surround a string or a macro, resolved to a string, with double quotes */
+#define _STRINGIFY(a) # a
+#define STRINGIFY(a) _STRINGIFY(a)
+
#endif /* __STRUTIL_H__ */