> > I know the comments are outside of the C spec, but /* ... */ is
> > real crappy IMHO.  You have so far, came up with the most valid
> > reason for me to convert the comments from C++ style to C.
> >
> > Which is why I'll be delighted to provide a small shell-script
> > in misc/ that serves as a front end for the compiler and removes
> > the '//' comments and pipes the output to the compiler.  :^)
> > You can tell configure to use this on systems which insist
> > on being anal.
>
> Honestly, I think that code that is being written in C should be
written
> in C.   If you want to do such a conversion, I suggest doing it when
you
> check your code into CVS rather than at compile time.
>

Well, I've got my edited copies of all the kernel source files with all
the C++ comments changed to C.  Unfortunately, they were cvs'd a couple
of days ago, which means they don't sync with Kevin's code, but if
anyone wants a patch, then I can certainly crank it out and send it off.
It's pretty likely to be a huge patch, though, just because of the sheer
number of comments that had to be changed.

The weird thing I find is that the comments in the code are mixed
styles, there'll be large sections of code with C comments, and then
mostly C comments with some C++ one-liners thrown in.  Certainly doesn't
make the code look good, and hurts readability somewhat if you're
scanning for comments.

Isaac Waldron
waldroni at lr dot net



Reply via email to