From owner-freebsd-questions Fri Feb 23 02:51:25 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA28723 for questions-outgoing; Fri, 23 Feb 1996 02:51:25 -0800 (PST) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id CAA28714 for ; Fri, 23 Feb 1996 02:51:13 -0800 (PST) Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id LAA20243; Fri, 23 Feb 1996 11:48:34 +0100 Message-Id: <199602231048.LAA20243@gilberto.physik.rwth-aachen.de> Subject: Re: cc in FreeBSD To: kuku@gilberto.physik.rwth-aachen.de Date: Fri, 23 Feb 1996 11:48:33 +0100 (MET) From: "Christoph P. Kukulies" Cc: wsantee@wsantee.oz.net, wollman@lcs.mit.edu, questions@FreeBSD.org In-Reply-To: <199602230925.KAA19917@gilberto.physik.rwth-aachen.de> from "Christoph Kukulies" at Feb 23, 96 10:25:46 am From: Christoph Kukulies Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4 PL25 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org Precedence: bulk > > > > > 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);} or this one: /* ////////// */ > > > > > > > > > You guys are simply amazing. That's all there is to it. Here I was > > being pretty glib about writing this in about 4 lines of Perl code and > > it comes back to me demonstrated in one. Wow. (I guess to be fair, 2 > > of those lines were the equivilant of the '-p' switch which I didn't > > know about). Good show! > > > > Cheers, > > -- > > ( -Wes Santee | ) > > ( (backup) | No one told you when to run... ) > > ( http://www.oz.net/~wsantee \------------------------------- ) > > ( finger for PGP info Powered by FreeBSD ) > > > > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de