From owner-freebsd-questions Fri Aug 11 20:43: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from unix.worldpath.net (unix.worldpath.net [206.152.180.10]) by hub.freebsd.org (Postfix) with ESMTP id 575EB37B714 for ; Fri, 11 Aug 2000 20:42:49 -0700 (PDT) (envelope-from waldroni@lr.net) Received: from camry (pm41-220-78.worldpath.net [208.133.220.78]) by unix.worldpath.net (8.9.3/8.9.3(WPI)) with SMTP id XAA21085 for ; Fri, 11 Aug 2000 23:42:46 -0400 (EDT) Message-ID: <005501c0040f$57447a60$0100000a@waldron.house> Reply-To: "Isaac Waldron" From: "Isaac Waldron" To: Subject: Re: C++ comments in kernel module Date: Fri, 11 Aug 2000 23:42:28 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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