Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2000 01:00:50 -0400 (EDT)
From:      "Philip M. Gollucci" <gollucci@wam.umd.edu>
To:        Isaac Waldron <waldroni@lr.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: C++ comments in kernel module
Message-ID:  <Pine.GSO.4.21.0008120100270.28029-100000@rac1.wam.umd.edu>
In-Reply-To: <005501c0040f$57447a60$0100000a@waldron.house>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.21.0008120100270.28029-100000>