From 9890c7a57a12c3c611ee0396474604e540a65dd3 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 3 Mar 2003 16:35:45 +0000 Subject: [PATCH] I've been meaning to get round to this for _ages_: in front of my coroutine macros, I now include a comment linking to my web article that explains what they do. [originally from svn r2902] --- ssh.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index 5bea36b9..82fbf152 100644 --- a/ssh.c +++ b/ssh.c @@ -269,7 +269,15 @@ static char *ssh2_pkt_type(int pkt_ctx, int type) enum { PKT_END, PKT_INT, PKT_CHAR, PKT_DATA, PKT_STR, PKT_BIGNUM }; -/* Coroutine mechanics for the sillier bits of the code */ +/* + * Coroutine mechanics for the sillier bits of the code. If these + * macros look impenetrable to you, you might find it helpful to + * read + * + * http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html + * + * which explains the theory behind these macros. + */ #define crBegin(v) { int *crLine = &v; switch(v) { case 0:; #define crState(t) \ struct t *s; \