]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
While I'm adding explanatory comments by the coroutine macros, it
authorSimon Tatham <anakin@pobox.com>
Fri, 14 Mar 2003 21:20:32 +0000 (21:20 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 14 Mar 2003 21:20:32 +0000 (21:20 +0000)
occurs to me that would also be a good place to put a copy of the
instructions for disabling Edit and Continue debugging. Nobody
_actually_ reads the README, after all...

[originally from svn r2935]

ssh.c

diff --git a/ssh.c b/ssh.c
index 82fbf152e32c01dfb664b00e7c7ae9a62aeb2f8e..662d521f3306228bf7e72838c41e9dfa40b5590e 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -277,6 +277,17 @@ enum { PKT_END, PKT_INT, PKT_CHAR, PKT_DATA, PKT_STR, PKT_BIGNUM };
  *   http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
  * 
  * which explains the theory behind these macros.
+ * 
+ * In particular, if you are getting `case expression not constant'
+ * errors when building with MS Visual Studio, this is because MS's
+ * Edit and Continue debugging feature causes their compiler to
+ * violate ANSI C. To disable Edit and Continue debugging:
+ * 
+ *  - right-click ssh.c in the FileView
+ *  - click Settings
+ *  - select the C/C++ tab and the General category
+ *  - under `Debug info:', select anything _other_ than `Program
+ *    Database for Edit and Continue'.
  */
 #define crBegin(v)     { int *crLine = &v; switch(v) { case 0:;
 #define crState(t) \