mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Remove the prohibition on // comments.
Those were forbidden so that we could still compile on pre-C99 C compilers. But now we expect C99 everywhere (or at least most of it, excluding the parts that MSVC never implemented and C11 made optional), so // comments aren't forbidden any more. Most of the comments in this code base are still old-style, but that's now a matter of stylistic consistency rather than hard requirement.
This commit is contained in:
parent
b7ed5056e5
commit
575318717b
@ -171,9 +171,7 @@ to. C++ friendliness is really a side benefit.)
|
|||||||
We want PuTTY to continue being pure C, at least in the
|
We want PuTTY to continue being pure C, at least in the
|
||||||
platform-independent parts and the currently existing ports. Patches
|
platform-independent parts and the currently existing ports. Patches
|
||||||
which switch the Makefiles to compile it as C++ and start using
|
which switch the Makefiles to compile it as C++ and start using
|
||||||
classes will not be accepted. Also, in particular, we disapprove of
|
classes will not be accepted.
|
||||||
\cw{//} comments, at least for the moment. (Perhaps once C99 becomes
|
|
||||||
genuinely widespread we might be more lenient.)
|
|
||||||
|
|
||||||
The one exception: a port to a new platform may use languages other
|
The one exception: a port to a new platform may use languages other
|
||||||
than C if they are necessary to code on that platform. If your
|
than C if they are necessary to code on that platform. If your
|
||||||
|
Loading…
Reference in New Issue
Block a user