Ethereal-dev: [Ethereal-dev] [0.10.13] Use of C++ comments in C source files

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Thu, 10 Nov 2005 15:19:28 -0600
Not all vendor C compilers accept C++ comments.

-- 
albert chin (china@xxxxxxxxxxxxxxxxxx)

-- snip snip
Index: epan/dissectors/packet-cimd.c
===================================================================
--- epan/dissectors/packet-cimd.c.orig	2005-10-10 08:22:58.000000000 -0500
+++ epan/dissectors/packet-cimd.c	2005-11-10 15:07:51.250277000 -0600
@@ -286,9 +286,9 @@
   gchar token[4];  
   gchar ch;
   char* mapping[128] = {
-    "_Oa","_L-", "", "_Y-", "_e`", "_e'", "_u`", "_i`", "_o`","_C,", //10
-    "", "_O/", "_o/", "", "_A*", "_a*","_gd", "_--", "_gf", "_gg", "_gl", //21
-    "_go", "_gp","_gi", "_gs", "_gt", "_gx", "_XX","_AE","_ae", "_ss","_E'", //32
+    "_Oa","_L-", "", "_Y-", "_e`", "_e'", "_u`", "_i`", "_o`","_C,", /*10*/
+    "", "_O/", "_o/", "", "_A*", "_a*","_gd", "_--", "_gf", "_gg", "_gl", /*21*/
+    "_go", "_gp","_gi", "_gs", "_gt", "_gx", "_XX","_AE","_ae", "_ss","_E'", /*32*/
     "","","_qq","", "_ox", "", "","", "", "", "", "", "", "", "", "",
     "", "", "", "", "", "" , "", "", "", "", "", "", "", "", "", "",
     "_!!", "", "", "", "", "", "","", "", "", "", "", "", "", "", "",
Index: epan/dissectors/packet-dcp.c
===================================================================
--- epan/dissectors/packet-dcp.c.orig	2005-10-10 08:23:01.000000000 -0500
+++ epan/dissectors/packet-dcp.c	2005-11-10 15:11:32.266419000 -0600
@@ -698,7 +698,7 @@
 					
 				default:
 					/* DCCP runs only atop IPv4 and IPv6.... */
-					//DISSECTOR_ASSERT_NOT_REACHED();
+					/*DISSECTOR_ASSERT_NOT_REACHED();*/
 					break;
 				}
 				cksum_vec[3].ptr = tvb_get_ptr(tvb, offset, len);