From a08f8a4c2925c421d9e74604fa720034c5440376 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 14 Sep 2016 03:38:34 +0000 Subject: 39310/0004: internals: match_str: Document 'savl'. --- Src/Zle/compmatch.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'Src/Zle') diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index a3988d542..d32d9f1e1 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -641,7 +641,22 @@ match_str(char *l, char *w, Brinfo *bpp, int bc, int *rwlp, * the temporal lobe. Reward promised for its safe return. * Contact zsh-workers@zsh.org. */ - char *tp, savl = '\0'; + char *tp; + /* + * Temporary variable. Used as temporary storage for a + * + * { + * () { + * local foo="$foo" + * foo[1]=bar + * ... + * } + * (use original $foo here) + * } + * + * operation. Similar to savw. + */ + char savl; /* * The anchor on this end. */ -- cgit 1.4.1