aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-02-13 20:57:22 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-02-13 20:57:22 +0000
commit0ebc01dc03e38726e3d6fdffb30171eda3f8f80e (patch)
tree9b8f6907fd7e6bd7e99afd8632d22b61eed1452c /doc
parent1ebd7feda946b60b3a1c9841d282bfb7bd6b3b86 (diff)
From Sebastien Tandel:
Create two new files (ws_strsplit.[ch]) that use GTK2 code to override the buggy g_strsplit() function when compiling for GTK1. Include this work-around function (ws_strsplit) in libwireshark.def. Add notes on usage to README.developer. Include epan/ws_strsplit.h in all files that use g_strsplit(). svn path=/trunk/; revision=20804
Diffstat (limited to 'doc')
-rw-r--r--doc/README.developer6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/README.developer b/doc/README.developer
index a27c8f3174..3032263502 100644
--- a/doc/README.developer
+++ b/doc/README.developer
@@ -433,6 +433,12 @@ automatically free()d when the dissection of the current packet ends so you
don't have to worry about free()ing them explicitly in order to not leak memory.
Please read README.malloc.
+When using g_strsplit() from glib, place an #include <epan/ws_strsplit.h> at
+the top of your file. This file will leave in place g_strsplit() when using
+GTK/GLib v2 and replace it with GLib v2 code when compiling for GTK/GLib 1.
+This is necessary because the GLib v1 version of g_strsplit is known to be
+buggy. In either case, you will still use the g_strsplit() function name
+as usual in your code.
1.1.3 Robustness.