Add support for comments in "process-x11-fields.pl", and add a copyright
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 21 Apr 2001 08:04:43 +0000 (08:04 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 21 Apr 2001 08:04:43 +0000 (08:04 +0000)
notice/RCS ID/credit to Christophe to "x11-fields" as a comment.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3358 f5534014-38df-0310-8fa8-9805f1628bb7

process-x11-fields.pl
x11-fields

index 00b2177edd2e2f47fb62b19ccb8f0f35e7e5121b..4408b4cc0f86659e037fe677bb5168d569b7f595 100644 (file)
@@ -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;
index d597509ef56436d77340c2da57df09dec9c14bd2..8e55fc72c12f44d585a9148ddc43f39de90d944c 100644 (file)
@@ -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