diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-08-13 23:47:43 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-08-13 23:47:43 +0000 |
commit | ab6490398c47842880a96cef88161a535f825aa1 (patch) | |
tree | 8d1cb07df40b15146867574b7a920c1df7eb572c /dfilter-scanner.l | |
parent | a5acc58fe3e5d2b5e8dde83ccda2ad5b5f3246c8 (diff) |
Moved global memory alloction used in display filters (which was stored
in dfilter-grammar.y) to a new struct dfilter. Display filters now have
their own struct, rather than simply being GNode's. This allows multiple
display filters to exist at once, aiding John McDermott in his
work on colorization.
svn path=/trunk/; revision=480
Diffstat (limited to 'dfilter-scanner.l')
-rw-r--r-- | dfilter-scanner.l | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dfilter-scanner.l b/dfilter-scanner.l index 51c21d6b98..cb75f0f76f 100644 --- a/dfilter-scanner.l +++ b/dfilter-scanner.l @@ -3,7 +3,7 @@ /* dfilter-scanner.l * Scanner for display filters * - * $Id: dfilter-scanner.l,v 1.6 1999/08/12 21:16:31 guy Exp $ + * $Id: dfilter-scanner.l,v 1.7 1999/08/13 23:47:40 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -327,7 +327,8 @@ byte_str_to_guint8_array(const char *s) char *p, *str; barray = g_byte_array_new(); - dfilter_list_byte_arrays = g_slist_append(dfilter_list_byte_arrays, barray); + /* XXX - don't use global_df, but pass in pointer to GSList* */ + global_df->list_of_byte_arrays = g_slist_append(global_df->list_of_byte_arrays, barray); byte_str = g_strdup(s); str = byte_str; |