Ethereal-dev: [Ethereal-dev] Re: 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.

From: ronnie sahlberg <ronniesahlberg@xxxxxxxxx>
Date: Thu, 10 Nov 2005 17:50:49 -0400
checked in

On 11/10/05, Albert Chin <ethereal-dev@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> 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);
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>