From 3ccdaf841fb3c2f30e4ccb4c1b2d3cdb176b128d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 21 Apr 2001 08:04:43 +0000 Subject: 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 --- process-x11-fields.pl | 12 +++++++++++- x11-fields | 26 ++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) 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 # -# $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 @@ -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 +# +# $Id: x11-fields,v 1.4 2001/04/21 08:04:43 guy Exp $ +# +# Ethereal - Network traffic analyzer +# By Gerald Combs +# 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 -- cgit v1.2.3