aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-04-21 08:04:43 +0000
committerGuy Harris <guy@alum.mit.edu>2001-04-21 08:04:43 +0000
commit3ccdaf841fb3c2f30e4ccb4c1b2d3cdb176b128d (patch)
tree7dfe381880fd99e444247383344ab63bfcc5f147
parent17449f118677561ac3d77a5edab730b69342e538 (diff)
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
-rw-r--r--process-x11-fields.pl12
-rw-r--r--x11-fields26
2 files changed, 37 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;
diff --git a/x11-fields b/x11-fields
index d597509ef5..8e55fc72c1 100644
--- a/x11-fields
+++ b/x11-fields
@@ -1,3 +1,29 @@
+#
+# Fields for X11 dissector.
+#
+# Copyright 2000, Christophe Tronche <ch.tronche@computer.org>
+#
+# $Id: x11-fields,v 1.4 2001/04/21 08:04:43 guy Exp $
+#
+# Ethereal - Network traffic analyzer
+# By Gerald Combs <gerald@ethereal.com>
+# Copyright 1998 Gerald Combs
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+
acceleration-denominator INT16 DEC
acceleration-numerator INT16 DEC
access-mode UINT8 DEC VALS