From owner-freebsd-questions Fri Aug 11 22: 1: 1 2000 Delivered-To: freebsd-questions@freebsd.org Received: from po4.wam.umd.edu (po4.wam.umd.edu [128.8.10.166]) by hub.freebsd.org (Postfix) with ESMTP id 76B1337BA70 for ; Fri, 11 Aug 2000 22:00:58 -0700 (PDT) (envelope-from gollucci@wam.umd.edu) Received: from rac1.wam.umd.edu (rac1.wam.umd.edu [128.8.10.141]) by po4.wam.umd.edu (8.9.3/8.9.3) with ESMTP id BAA06909; Sat, 12 Aug 2000 01:01:03 -0400 (EDT) Received: from rac1.wam.umd.edu (localhost [127.0.0.1]) by rac1.wam.umd.edu (8.9.3/8.9.3) with SMTP id BAA28466; Sat, 12 Aug 2000 01:00:50 -0400 (EDT) Received: from localhost (gollucci@localhost) by rac1.wam.umd.edu (8.9.3/8.9.3) with ESMTP id BAA28461; Sat, 12 Aug 2000 01:00:50 -0400 (EDT) X-Authentication-Warning: rac1.wam.umd.edu: gollucci owned process doing -bs Date: Sat, 12 Aug 2000 01:00:50 -0400 (EDT) From: "Philip M. Gollucci" To: Isaac Waldron Cc: freebsd-questions@FreeBSD.ORG Subject: Re: C++ comments in kernel module In-Reply-To: <005501c0040f$57447a60$0100000a@waldron.house> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You could just write a perl/sed/awk script using regex find and repace them. ***************************************************************************** Philip M. Gollucci E-mail : gollucci@wam.umd.edu Philip@p6m7g8.com Phone : 301.249.6261 Major : Computer Science Electrical Engineering Current Job : Co Science, Discovery, & the Universe Webmaster ***************************************************************************** On Fri, 11 Aug 2000, Isaac Waldron wrote: > > > Isaac Waldron wrote: > > > > > I am working on a kernel module for the plex86 vm project, and have run > into a > > > small issue with some of the non-OS specific code. This code has C++ > style > > > '//' comments in it, which are disallowed by gcc when the -ansi flag is > used. > > > Does anyone know of a way to re-enable these comments, and if not, is > there > > > any harm in disabling the -ansi flag when compiling a kernel module? > > > > Just don't use those comments, use real C /* comments */ instead. I > > think technically the // comments are legal ANSI C now, but haven't been > > for long and I guess the compilers haven't caught up yet. But no, I > > don't think removing -ansi will hurt. > > > > -- > > Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D > > FreeBSD Documentation Project / > > > > Well, there are large portions of code that I didn't write that has mixed // > and /* */ comments in it. But I finally just sat down and changed them all > to the old style. Now I just have to send a patchset in to the plex86 guys > and hope it gets into the source tree. But that's another e-mail. Thanks > for the help. > > Isaac Waldron > waldroni at lr dot net > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message