From 575318717b383c399dda3221d715ecaa699a2a64 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 22 Jan 2022 15:53:24 +0000 Subject: [PATCH] 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. --- doc/udp.but | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/udp.but b/doc/udp.but index b98633f8..12b3392b 100644 --- a/doc/udp.but +++ b/doc/udp.but @@ -171,9 +171,7 @@ to. C++ friendliness is really a side benefit.) We want PuTTY to continue being pure C, at least in the platform-independent parts and the currently existing ports. Patches which switch the Makefiles to compile it as C++ and start using -classes will not be accepted. Also, in particular, we disapprove of -\cw{//} comments, at least for the moment. (Perhaps once C99 becomes -genuinely widespread we might be more lenient.) +classes will not be accepted. 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