Subject: Re: Teaching indent about C++ comments
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Quentin Garnier <cube@cubidou.net>
List: tech-userlevel
Date: 05/03/2006 07:39:19
--mzDsWmoYTs+XRn5Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, May 03, 2006 at 12:14:36AM -0400, der Mouse wrote:
> > [indent(1) vs //-to-nl comments]
>=20
> > Any thoughts?
>=20
> Ummm...sed -e 's@//.*@/* & */@'?  Bit of a kludge, but then, what are
> C++ comments doing in supposedly-C code anyway?

Aren't they valid in C99?  GCC 3+ allows them along with declaring
variables anywhere.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--mzDsWmoYTs+XRn5Z
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBRFhCB9goQloHrPnoAQKQQwgAwtOYRI1LgLcHxPjAHNEEevQGSKQ8Dg37
EeUYVIWqZxrjKGQldTgSOm4EmiCb7kX0mZMm7rR5GbsEnUs2nUO2jAu7N9kx3Tbo
oPqsSqr8XPLSzMIe0tctRmnpDa3x/AHdbeDwjlcwEPe9+zVN8BGrA1uXkLfzIvk2
dXuBiz7VN6x9nPy2uyNYO5u1fDAqQAeIyaS7zZ+f85gU03GeRkjTmTGUlhg31TV6
HwUZVHVie0k6q1Z1kGvVVjv+RX+mNX8yUWCgyCz76v+xq47EGkd3mGhDnwGLrsWs
F7xMVcnOV2H6hsJmuJrBsPy2CoC1DYwvGV5JQqR3LHEcG50bP17XmQ==
=9+og
-----END PGP SIGNATURE-----

--mzDsWmoYTs+XRn5Z--