diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-18 18:53:11 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-22 02:23:53 +0000 |
commit | fd1ef7d770d285dbf12f4b3516ea963a852e5cdd (patch) | |
tree | e40563d0cb3845ca9b183b528bacf2d02023dd57 /Src/parse.c | |
parent | e37df255c166efdda25d87b9d23f5c492cc02a68 (diff) | |
download | zsh-fd1ef7d770d285dbf12f4b3516ea963a852e5cdd.tar.gz zsh-fd1ef7d770d285dbf12f4b3516ea963a852e5cdd.tar.xz zsh-fd1ef7d770d285dbf12f4b3516ea963a852e5cdd.zip |
45583/0006: internal: Add some comments for orientation. No functional change.
Diffstat (limited to 'Src/parse.c')
-rw-r--r-- | Src/parse.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Src/parse.c b/Src/parse.c index 6e79f6c4b..6ca6f33be 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -1676,7 +1676,7 @@ par_funcdef(int *cmplx) zshlex(); p = ecadd(0); - ecadd(0); + ecadd(0); /* p + 1 */ while (tok == STRING) { if ((*tokstr == Inbrace || *tokstr == '{') && @@ -1688,9 +1688,9 @@ par_funcdef(int *cmplx) num++; zshlex(); } - ecadd(0); - ecadd(0); - ecadd(0); + ecadd(0); /* p + num + 2 */ + ecadd(0); /* p + num + 3 */ + ecadd(0); /* p + num + 4 */ nocorrect = 0; incmdpos = 1; @@ -1728,15 +1728,15 @@ par_funcdef(int *cmplx) ecadd(WCB_END()); ecbuf[p + num + 2] = so - oecssub; - ecbuf[p + num + 3] = ecsoffs - so; - ecbuf[p + num + 4] = ecnpats; - ecbuf[p + 1] = num; + ecbuf[p + num + 3] = ecsoffs - so; /* "length of string table" */ + ecbuf[p + num + 4] = ecnpats; /* "number of patterns for body" */ + ecbuf[p + 1] = num; /* "number of names" */ ecnpats = onp; ecssub = oecssub; ecnfunc++; - ecbuf[p] = WCB_FUNCDEF(ecused - 1 - p); + ecbuf[p] = WCB_FUNCDEF(ecused - 1 - p); /* "offset to after body" */ /* If it's an anonymous function... */ if (num == 0) { |