From owner-freebsd-questions Thu Feb 22 23:36:19 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA17303 for questions-outgoing; Thu, 22 Feb 1996 23:36:19 -0800 (PST) Received: from wsantee.oz.net (wsantee.oz.net [204.118.240.207]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA17298 for ; Thu, 22 Feb 1996 23:36:15 -0800 (PST) Received: (from wsantee@localhost) by wsantee.oz.net (8.6.12/8.6.12) id XAA00579; Thu, 22 Feb 1996 23:35:47 -0800 Message-Id: <199602230735.XAA00579@wsantee.oz.net> Subject: Re: cc in FreeBSD To: wollman@lcs.mit.edu (Garrett A. Wollman) Date: Thu, 22 Feb 1996 23:35:43 -0800 (PST) From: "Wes Santee" Cc: questions@freebsd.org In-Reply-To: <9602221618.AA26868@halloran-eldar.lcs.mit.edu> from "Garrett A. Wollman" at Feb 22, 96 11:18:32 am 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 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 )