diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-04-21 08:04:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-04-21 08:04:43 +0000 |
commit | 3ccdaf841fb3c2f30e4ccb4c1b2d3cdb176b128d (patch) | |
tree | 7dfe381880fd99e444247383344ab63bfcc5f147 /process-x11-fields.pl | |
parent | 17449f118677561ac3d77a5edab730b69342e538 (diff) | |
download | wireshark-3ccdaf841fb3c2f30e4ccb4c1b2d3cdb176b128d.tar.gz wireshark-3ccdaf841fb3c2f30e4ccb4c1b2d3cdb176b128d.tar.bz2 wireshark-3ccdaf841fb3c2f30e4ccb4c1b2d3cdb176b128d.zip |
Add support for comments in "process-x11-fields.pl", and add a copyright
notice/RCS ID/credit to Christophe to "x11-fields" as a comment.
svn path=/trunk/; revision=3358
Diffstat (limited to 'process-x11-fields.pl')
-rw-r--r-- | process-x11-fields.pl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/process-x11-fields.pl b/process-x11-fields.pl index 00b2177edd..4408b4cc0f 100644 --- a/process-x11-fields.pl +++ b/process-x11-fields.pl @@ -6,7 +6,7 @@ # # Copyright 2000, Christophe Tronche <ch.tronche@computer.org> # -# $Id: process-x11-fields.pl,v 1.3 2001/04/20 19:20:31 guy Exp $ +# $Id: process-x11-fields.pl,v 1.4 2001/04/21 08:04:43 guy Exp $ # # Ethereal - Network traffic analyzer # By Gerald Combs <gerald@ethereal.com> @@ -51,6 +51,16 @@ while(<>) { } @fields = split /\s+/o ; + if ($fields[0] eq '#') { + # + # If the line begins with "#", treat it as a comment, by + # ignoring it. + # + # (We don't support comments at the end of a line; that would + # require some more pain in our simple parser.) + # + next; + } $abbrev = shift @fields; $type = shift @fields; $lastAbbrev = $abbrev; |