Isaac Waldron wrote:
>
> I don't know if anyone wants to change it or not, but we really shouldn't be
> using C++ style comments ("//") in code that needs to be compiled under a
> possibly ansi C compiler. All code in the FreeBSD kernel is compiled with
> the -ansi switch, so this is a problem when creating the kernel module for
> FreeBSD, as many of the files in the plex86/kernel directory have C++
> comments. This is likely to be added to a future revision of the ansi C
> standard, but it is not a part of it right now.
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.
-Kevin