1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

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]
This commit is contained in:
Simon Tatham 2003-03-03 16:35:45 +00:00
parent 614c5a3b92
commit 9890c7a57a

10
ssh.c
View File

@ -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; \