test-string-list.c: Fix some sparse warnings
PATCH 1/1 test-string-list.c: Fix some sparse warnings
In particular, sparse complains as follows:
SP test-string-list.c
test-string-list.c:10:6: warning: symbol 'parse_string_list' was not \
declared. Should it be static?
test-string-list.c:18:6: warning: symbol 'write_list' was not \
declared. Should it be static?
test-string-list.c:25:6: warning: symbol 'write_list_compact' was not \
declared. Should it be static?
test-string-list.c:38:5: warning: symbol 'prefix_cb' was not \
declared. Should it be static?
In order to suppress the warnings, since the above symbols do not need more than file scope, we simply include the static modifier in their declaration.
---
Hi Michael,
If you need to re-roll your 'mh/string-list' branch, could you please squash the relevent parts of this patch into those commits.
Thanks!
ATB,
Ramsay Jones
test-string-list.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
test-string-list.c +4 -4
@@ -7,7 +7,7 @@* list (as opposed to "", which indicates a string list containing a * single empty string). list->strdup_strings must be set. */ -void parse_string_list (struct string_list *list,const char *arg) +static void parse_string_list (struct string_list *list,const char *arg) {if (!strcmp (arg,"-" ))return ;
@@ -15,14 +15,14 @@ void parse_string_list(struct string_list *list, const char *arg) (void )string_list_split (list, arg,':' ,-1 ); } -void write_list (const struct string_list *list) +static void write_list (const struct string_list *list) {int i;for (i =0 ; i < list->nr; i++)printf ("[%d]: \"%s\"\n" , i, list->items[i].string); } -void write_list_compact (const struct string_list *list) +static void write_list_compact (const struct string_list *list) {int i;if (!list->nr)
@@ -35,7 +35,7 @@ void write_list_compact(const struct string_list *list) } } -int prefix_cb (struct string_list_item *item,void *cb_data) +static int prefix_cb (struct string_list_item *item,void *cb_data) {const char *prefix = (const char *)cb_data;return !prefixcmp (item->string, prefix);
Signature · 1 line
1.7.12
PATCH 1/7 builtin/notes.c: mark file-scope functions as static
--- builtin.h | 2 -- builtin/notes.c | 7 +++++-- 2 files changed, 5 insertions(+), 4 deletions(-)
builtin.h +0 -2
@@ -21,7 +21,6 @@ struct fmt_merge_msg_opts {extern int fmt_merge_msg (struct strbuf *in,struct strbuf *out,struct fmt_merge_msg_opts *); -extern void commit_notes (struct notes_tree *t,const char *msg);struct notes_rewrite_cfg {struct notes_tree **trees;
@@ -33,7 +32,6 @@ struct notes_rewrite_cfg {int mode_from_env; }; -combine_notes_fn parse_combine_notes_fn (const char *v);struct notes_rewrite_cfg *init_copy_notes_for_rewrite (const char *cmd);int copy_note_for_rewrite (struct notes_rewrite_cfg *c,const unsigned char *from_obj,const unsigned char *to_obj);
builtin/notes.c +5 -2
@@ -19,6 +19,9 @@#include "string-list.h" #include "notes-merge.h" +static void commit_notes (struct notes_tree *t,const char *msg); +static combine_notes_fn parse_combine_notes_fn (const char *v); +static const char *const git_notes_usage[] = {N_ ("git notes [--ref <notes_ref>] [list [<object>]]" ),N_ ("git notes [--ref <notes_ref>] add [-f] [-m <msg> | -F <file> | (-c | -C) <object>] [<object>]" ),
@@ -288,7 +291,7 @@ static int parse_reedit_arg(const struct option *opt, const char *arg, int unsetreturn parse_reuse_arg (opt, arg, unset); } -void commit_notes (struct notes_tree *t,const char *msg) +static void commit_notes (struct notes_tree *t,const char *msg) {struct strbuf buf =STRBUF_INIT ;unsigned char commit_sha1[20 ];
@@ -312,7 +315,7 @@ void commit_notes(struct notes_tree *t, const char *msg)strbuf_release (&buf); } -combine_notes_fn parse_combine_notes_fn (const char *v) +static combine_notes_fn parse_combine_notes_fn (const char *v) {if (!strcasecmp (v,"overwrite" ))return combine_notes_overwrite;
Signature · 1 line
1.7.12.508.g4d78187
PATCH 2/7 commit.c: mark file-scope functions as static
--- commit.c | 7 +++++-- commit.h | 1 - 2 files changed, 5 insertions(+), 3 deletions(-)
commit.c +5 -2
@@ -9,6 +9,8 @@#include "gpg-interface.h" #include "mergesort.h" +static struct commit_extra_header *read_commit_extra_header_lines (const char *buf,size_t len,const char **); +int save_commit_buffer =1 ;const char *commit_type ="commit" ;
@@ -1073,8 +1075,9 @@ static int excluded_header_field(const char *field, size_t len, const char **excreturn 0 ; } -struct commit_extra_header *read_commit_extra_header_lines (const char *buffer,size_t size, -const char **exclude) +static struct commit_extra_header *read_commit_extra_header_lines ( +const char *buffer,size_t size, +const char **exclude) {struct commit_extra_header *extra =NULL , **tail = &extra, *it =NULL ;const char *line, *next, *eof, *eob;
commit.h +0 -1
@@ -204,7 +204,6 @@ extern int commit_tree_extended(const struct strbuf *msg, unsigned char *tree, struct commit_extra_header *);extern struct commit_extra_header *read_commit_extra_headers (struct commit *,const char **); -extern struct commit_extra_header *read_commit_extra_header_lines (const char *buf,size_t len,const char **);extern void free_commit_extra_headers (struct commit_extra_header *extra);
Signature · 1 line
1.7.12.508.g4d78187
PATCH 3/7 diff.c: mark private file-scope symbols as static
In reply to Junio C Hamano--- diff.c | 2 +- diff.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
diff.c +1 -1
@@ -25,7 +25,7 @@static int diff_detect_rename_default;static int diff_rename_limit_default =400 ;static int diff_suppress_blank_empty; -int diff_use_color_default =-1 ; +static int diff_use_color_default =-1 ;static const char *diff_word_regex_cfg;static const char *external_diff_cmd_cfg;int diff_auto_refresh_index =1 ;
diff.h +0 -1
@@ -243,7 +243,6 @@ extern int parse_long_opt(const char *opt, const char **argv,extern int git_diff_basic_config (const char *var,const char *value,void *cb);extern int git_diff_ui_config (const char *var,const char *value,void *cb); -extern int diff_use_color_default;extern void diff_setup (struct diff_options *);extern int diff_opt_parse (struct diff_options *,const char **,int );extern void diff_setup_done (struct diff_options *);
Signature · 1 line
1.7.12.508.g4d78187
PATCH 4/7 graph.c: mark private file-scope symbols as static
In reply to Junio C Hamano--- graph.c | 32 ++++++++++++++++++++++++++++++-- graph.h | 27 --------------------------- 2 files changed, 30 insertions(+), 29 deletions(-)
graph.c +30 -2
@@ -8,6 +8,34 @@/* Internal API */ /* +* Output the next line for a graph. +* This formats the next graph line into the specified strbuf. It is not +* terminated with a newline. +* +* Returns 1 if the line includes the current commit, and 0 otherwise. +* graph_next_line() will return 1 exactly once for each time +* graph_update() is called. +*/ +static int graph_next_line (struct git_graph *graph,struct strbuf *sb); + +/* +* Set up a custom scheme for column colors. +* +* The default column color scheme inserts ANSI color escapes to colorize +* the graph. The various color escapes are stored in an array of strings +* where each entry corresponds to a color, except for the last entry, +* which denotes the escape for resetting the color back to the default. +* When generating the graph, strings from this array are inserted before +* and after the various column characters. +* +* This function allows you to enable a custom array of color escapes. +* The 'colors_max' argument is the index of the last "reset" entry. +* +* This functions must be called BEFORE graph_init() is called. +*/ +static void graph_set_column_colors (const char **colors,unsigned short colors_max); + +/* * Output a padding line in the graph. * This is similar to graph_next_line(). However, it is guaranteed to * never print the current commit line. Instead, if the commit line is
@@ -62,7 +90,7 @@ enum graph_state {static const char **column_colors;static unsigned short column_colors_max; -void graph_set_column_colors (const char **colors,unsigned short colors_max) +static void graph_set_column_colors (const char **colors,unsigned short colors_max) { column_colors = colors; column_colors_max = colors_max;
@@ -1116,7 +1144,7 @@ static void graph_output_collapsing_line(struct git_graph *graph, struct strbufgraph_update_state (graph,GRAPH_PADDING ); } -int graph_next_line (struct git_graph *graph,struct strbuf *sb) +static int graph_next_line (struct git_graph *graph,struct strbuf *sb) {switch (graph->state) {case GRAPH_PADDING :
graph.h +0 -27
@@ -4,22 +4,6 @@/* A graph is a pointer to this opaque structure */ struct git_graph ; -/* -* Set up a custom scheme for column colors. -* -* The default column color scheme inserts ANSI color escapes to colorize -* the graph. The various color escapes are stored in an array of strings -* where each entry corresponds to a color, except for the last entry, -* which denotes the escape for resetting the color back to the default. -* When generating the graph, strings from this array are inserted before -* and after the various column characters. -* -* This function allows you to enable a custom array of color escapes. -* The 'colors_max' argument is the index of the last "reset" entry. -* -* This functions must be called BEFORE graph_init() is called. -*/ -void graph_set_column_colors (const char **colors,unsigned short colors_max);/* * Create a new struct git_graph.
@@ -49,17 +33,6 @@ void graph_update(struct git_graph *graph, struct commit *commit);*/ int graph_is_commit_finished (struct git_graph const *graph); -/* -* Output the next line for a graph. -* This formats the next graph line into the specified strbuf. It is not -* terminated with a newline. -* -* Returns 1 if the line includes the current commit, and 0 otherwise. -* graph_next_line() will return 1 exactly once for each time -* graph_update() is called. -*/ -int graph_next_line (struct git_graph *graph,struct strbuf *sb); -/* * graph_show_*: helper functions for printing to stdout
Signature · 1 line
1.7.12.508.g4d78187
PATCH 5/7 grep.c: mark private file-scope symbols as static
In reply to Junio C Hamano--- grep.c | 6 +++++- grep.h | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-)
grep.c +5 -1
@@ -3,6 +3,10 @@#include "userdiff.h" #include "xdiff-interface.h" +static int grep_source_load (struct grep_source *gs); +static int grep_source_is_binary (struct grep_source *gs); + + static struct grep_pat *create_grep_pat(const char *pat, size_t patlen, const char *origin, int no, enum grep_pat_token t,
@@ -403,7 +407,7 @@ static void dump_grep_expression_1(struct grep_expr *x, int in) } } -void dump_grep_expression (struct grep_opt *opt) +static void dump_grep_expression (struct grep_opt *opt) {struct grep_expr *x = opt->pattern_expression;
grep.h +1 -2
@@ -159,11 +159,10 @@ struct grep_source {void grep_source_init (struct grep_source *gs,enum grep_source_type type,const char *name,const void *identifier); -int grep_source_load (struct grep_source *gs);void grep_source_clear_data (struct grep_source *gs);void grep_source_clear (struct grep_source *gs);void grep_source_load_driver (struct grep_source *gs); -int grep_source_is_binary (struct grep_source *gs); +int grep_source (struct grep_opt *opt,struct grep_source *gs);
Signature · 1 line
1.7.12.508.g4d78187
Re: [PATCH 5/7] grep.c: mark private file-scope symbols as static
Quoted 36 lines · Junio C Hamano
Signed-off-by Junio C Hamano <[email protected]>--- grep.c | 6 +++++- grep.h | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-)grep.c +5
-1@@ -3,6 +3,10 @@#include "userdiff.h" #include "xdiff-interface.h" +static int grep_source_load (struct grep_source *gs); +static int grep_source_is_binary (struct grep_source *gs); + + static struct grep_pat *create_grep_pat(const char *pat, size_t patlen, const char *origin, int no, enum grep_pat_token t,@@ -403,7 +407,7 @@ static void dump_grep_expression_1(struct grep_expr *x, int in) } } -void dump_grep_expression (struct grep_opt *opt) +static void dump_grep_expression (struct grep_opt *opt) {struct grep_expr *x = opt->pattern_expression;grep.h +0
-0@@ -159,11 +159,10 @@ struct grep_source {
grep.h struct grep_source { · line 167
Quoted 10 lines
grep.h +1
-2void grep_source_init (struct grep_source *gs,enum grep_source_type type,const char *name,const void *identifier); -int grep_source_load (struct grep_source *gs);void grep_source_clear_data (struct grep_source *gs);void grep_source_clear (struct grep_source *gs);void grep_source_load_driver (struct grep_source *gs); -int grep_source_is_binary (struct grep_source *gs); +int grep_source (struct grep_opt *opt,struct grep_source *gs);
Heh, so I obviously didn't see this before sending the patch yesterday! :-D
Yes, this solves the problem addressed by yesterday's patch, so please ignore that. However, this tickles sparse to complain as well ... ;-)
New patch on it's way.
[I have a funny feeling that I'm about to download an email, in response to yesterday's patch, that says something like: "does commit 07a7d656 not fix it for you ..." :-P ]
ATB,
Ramsay Jones
Re: [PATCH 5/7] grep.c: mark private file-scope symbols as static
Quoted 6 lines · Ramsay Jones
Heh, so I obviously didn't see this before sending the patch yesterday! :-D
Yes, this solves the problem addressed by yesterday's patch, so please ignore that. However, this tickles sparse to complain as well ... ;-)
New patch on it's way.
Are you sure the patch you are responding to really "tickles sparse"?
You have another grep.c patch timestamped two minutes after the message I am responding to, and as far as I can see, it is a subset of the patch you are responding to with the message I am responding to.
Re: [PATCH 5/7] grep.c: mark private file-scope symbols as static
Quoted 11 lines · Junio C Hamano
Quoted 6 lines · Ramsay Jones
Heh, so I obviously didn't see this before sending the patch yesterday! :-D
Yes, this solves the problem addressed by yesterday's patch, so please ignore that. However, this tickles sparse to complain as well ... ;-)
New patch on it's way.
Are you sure the patch you are responding to really "tickles sparse"?
Yes.
Quoted 4 lines
You have another
grep.cpatch timestamped two minutes after the message I am responding to, and as far as I can see, it is a subset of the patch you are responding to with the message I am responding to.
Hmm, that sentence has too many twists for me! :-D
Let me see if I can clear up the misunderstanding:
- the "patch from yesterday" (18-09-2021) fixed a complaint from sparse regarding symbol 'dump_grep_expression'. This was before I had seen this patch email, or the resulting commit 07a7d656. Since my "patch from yesterday" is a strict subset of your patch, then your patch also fixes the complaint from sparse regarding the 'dump_grep_expression' symbol.
- this patch (commit 07a7d656) causes sparse to complain about the symbols 'grep_source_load' and 'grep_source_is_binary'. The new patch from me ("timestamped two minutes after ...") also titled "grep.c: Fix some sparse warnings" on 19-09-2012 at 7:04 PM, is *not* a subset of commit 07a7d656. This patch addresses the new sparse warnings regarding 'grep_source_load' and 'grep_source_is_binary'.
Hopefully that addresses the confusion! ;-)
HTH
ATB,
Ramsay Jones
PATCH 6/7 rerere.c: mark private file-scope symbols as static
In reply to Junio C Hamano--- rerere.c | 2 +- rerere.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
rerere.c +1 -1
@@ -25,7 +25,7 @@ const char *rerere_path(const char *hex, const char *file)return git_path ("rr-cache/%s/%s" , hex, file); } -int has_rerere_resolution (const char *hex) +static int has_rerere_resolution (const char *hex) {struct stat st;return !stat (rerere_path (hex,"postimage" ), &st);
rerere.h +0 -1
@@ -16,7 +16,6 @@ extern void *RERERE_RESOLVED;extern int setup_rerere (struct string_list *,int );extern int rerere (int );extern const char *rerere_path (const char *hex,const char *file); -extern int has_rerere_resolution (const char *hex);extern int rerere_forget (const char **);extern int rerere_remaining (struct string_list *);extern void rerere_clear (struct string_list *);
Signature · 1 line
1.7.12.508.g4d78187
PATCH 7/7 notes.c: mark private file-scope symbols as static
In reply to Junio C Hamano--- notes.c | 14 ++++++++++++-- notes.h | 14 -------------- 2 files changed, 12 insertions(+), 16 deletions(-)
notes.c +12 -2
@@ -1196,8 +1196,18 @@ void free_notes(struct notes_tree *t)memset (t,0 ,sizeof (struct notes_tree )); } -void format_note (struct notes_tree *t,const unsigned char *object_sha1, -struct strbuf *sb,const char *output_encoding,int flags) +/* +* Fill the given strbuf with the notes associated with the given object. +* +* If the given notes_tree structure is not initialized, it will be auto- +* initialized to the default value (see documentation for init_notes() above). +* If the given notes_tree is NULL, the internal/default notes_tree will be +* used instead. +* +* 'flags' is a bitwise combination of the flags for format_display_notes. +*/ +static void format_note (struct notes_tree *t,const unsigned char *object_sha1, +struct strbuf *sb,const char *output_encoding,int flags) {static const char utf8[] ="utf-8" ;const unsigned char *sha1;
notes.h +0 -14
@@ -241,20 +241,6 @@ void free_notes(struct notes_tree *t);#define NOTES_SHOW_HEADER 1#define NOTES_INDENT 2 -/* -* Fill the given strbuf with the notes associated with the given object. -* -* If the given notes_tree structure is not initialized, it will be auto- -* initialized to the default value (see documentation for init_notes() above). -* If the given notes_tree is NULL, the internal/default notes_tree will be -* used instead. -* -* 'flags' is a bitwise combination of the above formatting flags. -*/ -void format_note (struct notes_tree *t,const unsigned char *object_sha1, -struct strbuf *sb,const char *output_encoding,int flags); - -struct string_list ;struct display_notes_opt {
Signature · 1 line
1.7.12.508.g4d78187
Junio C Hamano
AppliedQueued. Thanks.
Quoted 13 lines · Ramsay Jones
In particular, sparse complains as follows:
SP
test-string-list.c
test-string-list.c:10:6: warning: symbol 'parse_string_list' was not \
declared. Should it be static?
test-string-list.c:18:6: warning: symbol 'write_list' was not \
declared. Should it be static?
test-string-list.c:25:6: warning: symbol 'write_list_compact' was not \
declared. Should it be static?
test-string-list.c:38:5: warning: symbol 'prefix_cb' was not \
declared. Should it be static?
Quoted 3 lines
In order to suppress the warnings, since the above symbols do not need more than file scope, we simply include the static modifier in their declaration.
Thanks for fixing this.
Is there some documentation about how to run sparse on the git codebase?
I naively tried "make sparse" and ended up with zillions of errors like
/usr/include/unistd.h:288:54: error: attribute '__leaf__': unknown attribute /usr/include/unistd.h:294:6: error: attribute '__leaf__': unknown attribute /usr/include/unistd.h:298:6: error: attribute '__leaf__': unknown attribute /usr/include/unistd.h:306:6: error: attribute '__leaf__': unknown attribute /usr/include/unistd.h:338:18: error: attribute '__leaf__': unknown attribute /usr/include/unistd.h:347:6: error: attribute '__leaf__': unknown attribute /usr/include/unistd.h:418:36: error: attribute '__leaf__': unknown attribute /usr/include/unistd.h:423:50: error: attribute '__leaf__': unknown attribute
Michael
Signature · 3 lines
Michael Haggerty [email protected] http://softwareswirl.blogspot.com/
Quoted 23 lines · Michael Haggerty
Quoted 13 lines · Ramsay Jones
In particular, sparse complains as follows:
SP
test-string-list.c
test-string-list.c:10:6: warning: symbol 'parse_string_list' was not \
declared. Should it be static?
test-string-list.c:18:6: warning: symbol 'write_list' was not \
declared. Should it be static?
test-string-list.c:25:6: warning: symbol 'write_list_compact' was not \
declared. Should it be static?
test-string-list.c:38:5: warning: symbol 'prefix_cb' was not \
declared. Should it be static?Quoted 3 lines
In order to suppress the warnings, since the above symbols do not need more than file scope, we simply include the static modifier in their declaration.
Thanks for fixing this.
Is there some documentation about how to run sparse on the git codebase?
I naively tried "make sparse" and ended up with zillions of errors like
Quoted 8 lines
/usr/include/unistd.h:288:54: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:294:6: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:298:6: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:306:6: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:338:18: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:347:6: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:418:36: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:423:50: error: attribute '__leaf__': unknown attribute
Yep, "make sparse" is the correct way to run sparse over git.
This looks like you are running sparse on a 64-bit system. I have heard that it has (or *had*) problems running on 64-bit systems. Unfortunately, I am currently confined to 32-bit. (I'm looking at getting a new laptop soon, before Windows 8 causes boot-time problems, so I will then have the same problem!)
How did you obtain/build/install sparse? The current release (v0.4.4) was released about Nov 2011 and I think you need a more up to date version. i.e. you need to build the latest, directly from the sparse repo.
Note that the repo on kernel.org is currently dormant. Christopher moved the active development to github: http://github.com/sparsecli/sparse
In particular, I *think* that the following commits (among others) may improve your experience of running sparse on git:
b0b4886 sparse: Add 'leaf' to ignored attributes. 7aa79f8 Adding default for m64/m32 handle
2313167 sparse: Add '__vector_size__' to ignored attributes 0a04210 sparse: Add 'error' to ignored attributes
(These are all post v0.4.4)
Note that I "make sparse" on Linux, cygwin and MinGW. (All 32-bit, of course) Only cygwin is "sparse clean". :-D
Linux has a handfull of warnings, mainly due to the system header files using features not supported by sparse; e.g. transparent unions. (It's on my TODO list!). I have a few patches which I keep forgetting to push back upstream ...
I "ported" sparse to MinGW about three years ago. I have yet to "tidy up" the patches and push them upstream. (*ahem*) I have a shed-load of patches to fix sparse warnings on git. However, since (as far as I know) nobody can confirm they actually fix anything ... ;-)
HTH
ATB,
Ramsay Jones
Quoted 15 lines · Ramsay Jones
Quoted 11 lines · Michael Haggerty
Is there some documentation about how to run sparse on the git codebase?
I naively tried "make sparse" and ended up with zillions of errors like
/usr/include/unistd.h:288:54: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:294:6: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:298:6: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:306:6: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:338:18: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:347:6: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:418:36: error: attribute '__leaf__': unknown attribute/usr/include/unistd.h:423:50: error: attribute '__leaf__': unknown attributeYep, "make sparse" is the correct way to run sparse over git.
Quoted 8 lines
This looks like you are running sparse on a 64-bit system. I have heard that it has (or *had*) problems running on 64-bit systems. Unfortunately, I am currently confined to 32-bit. (I'm looking at getting a new laptop soon, before Windows 8 causes boot-time problems, so I will then have the same problem!)
How did you obtain/build/install sparse? The current release (v0.4.4) was released about Nov 2011 and I think you need a more up to date version. i.e. you need to build the latest, directly from the sparse repo.
Yes, I'm running 64-bit Ubuntu 12.04 "precise". I installed sparse from the Ubuntu "multiverse" repository. It is package version 0.4.3+20110419-1 in Ubuntu's notation.
Thanks very much for all the info. I hadn't heard of sparse before and thought that using it might help me avoid submitting patches with problems like the ones you detected. It does seem promising! But since it seems a bit fiddly to get it running, and even then has some problems, it doesn't sound like the simple pre-submit checklist item that I had imagined.
Michael
Signature · 3 lines
Michael Haggerty [email protected] http://softwareswirl.blogspot.com/