diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-07-22 21:28:46 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-07-22 21:28:46 +0000 |
commit | 0edb5d5dc8424614a83ffbfcf4c4e639a171d00c (patch) | |
tree | 44e0d10b89e932b622a2743b7a9973fc365b1c2a /column.c | |
parent | 1ca40d8b3e3da1a2c25d954ad74350d3257f36fd (diff) |
Put in a comment noting that the format of a preferences string is
determined by the code in "prefs.c", so arguably
"col_format_to_pref_str()" belongs there.
Put in a comment noting that said format includes support for escaping
quotation marks in quoted strings, and that we should handle that.
svn path=/trunk/; revision=3774
Diffstat (limited to 'column.c')
-rw-r--r-- | column.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* column.c * Routines for handling column preferences * - * $Id: column.c,v 1.31 2001/07/11 04:44:58 guy Exp $ + * $Id: column.c,v 1.32 2001/07/22 21:28:46 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -389,10 +389,15 @@ get_column_title(gint col) { return(cfmt->title); } +/* XXX - needs to handle quote marks inside the quoted string, by + backslash-escaping them. + + XXX - does this really belong in "prefs.c", instead, as it has to know + about the syntax of the preferences file? */ #define MAX_FMT_PREF_LEN 1024 #define MAX_FMT_PREF_LINE_LEN 60 gchar * -col_format_to_pref_str() { +col_format_to_pref_str(void) { static gchar pref_str[MAX_FMT_PREF_LEN] = ""; GList *clp = g_list_first(prefs.col_list); fmt_data *cfmt; |