From owner-freebsd-questions Fri Feb 23 05:55:12 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA09058 for questions-outgoing; Fri, 23 Feb 1996 05:55:12 -0800 (PST) Received: from uswat.advtech.uswest.com (uswat.advtech.uswest.com [130.13.16.1]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id FAA09053 for ; Fri, 23 Feb 1996 05:55:08 -0800 (PST) Received: from egate.mnet.uswest.com ([151.116.23.138]) by uswat.advtech.uswest.com (8.7.3/8.7.3) with ESMTP id GAA06920; Fri, 23 Feb 1996 06:53:26 -0700 (MST) Received: from easthub (easthub.mnet.uswest.com [151.117.26.86]) by egate.mnet.uswest.com (8.7.1/8.7.1) with SMTP id HAA21942; Fri, 23 Feb 1996 07:01:31 -0700 (MST) Received: by easthub.mnet.uswest.com (M-Net Hub.951228) Received: from astro.acs.uswest.com by acs.uswest.com (5.x/SMI-SVR4) id AA10213; Fri, 23 Feb 1996 07:53:12 -0600 Received: from kermit by astro.acs.uswest.com (SMI-8.6/SMI-SVR4) id HAA08693; Fri, 23 Feb 1996 07:53:00 -0600 Message-Id: <312DC6BB.7DB9@uswest.com> Date: Fri, 23 Feb 1996 07:52:59 -0600 From: "Paul T. Root" Organization: !nterprise Networking Services X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m) Mime-Version: 1.0 To: Christoph Kukulies Cc: wsantee@wsantee.oz.net, wollman@lcs.mit.edu, questions@freebsd.org Subject: Re: cc in FreeBSD References: <199602231048.LAA20243@gilberto.physik.rwth-aachen.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org Precedence: bulk Christoph Kukulies wrote: > > > > > > > > > Garrett A. Wollman sez: > > > > > > > > > Not sure if this question is apropos for the Questions list, but is > > > > > there a switch in the cc for FreeBSD (gcc 2.6.3, looks like) that > > > > > allows C++-style comments in a C source file? > > > > > > > > Nope. Try this: > > > > > > > > perl -spi.bak -e 's,//(.*)$,/*$1 */,' *.c > > > > You script will fail on this: > > > > main(){ double a=3.//* this is a comment*/4.;printf("%f",a);} I don't think I'd want a program working for me that put out stuff like this. > or this one: > > /* ////////// */ Ok, this could happen, but is unlikely. -- Paul T. Root - USWEST !NTERPRISE Networking Service ptroot@uswest.com "Maybe he can find a way to boost this network's sagging ratings. I know, I know, we could work on our shows and make them better, but that takes so much time and money!" -- Stan Lansing _Murphy Brown_