mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +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:
parent
614c5a3b92
commit
9890c7a57a
10
ssh.c
10
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 };
|
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 crBegin(v) { int *crLine = &v; switch(v) { case 0:;
|
||||||
#define crState(t) \
|
#define crState(t) \
|
||||||
struct t *s; \
|
struct t *s; \
|
||||||
|
Loading…
Reference in New Issue
Block a user