about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-18 17:45:23 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-22 02:23:52 +0000
commitbe73026b07decc3990b2a345c42a8f7b74d8f83d (patch)
treef20b75148c1c253623731d6effe71857e126d2b3
parente94e828efd4835a45bab4e37f9e3b16fd09b3f78 (diff)
downloadzsh-be73026b07decc3990b2a345c42a8f7b74d8f83d.tar.gz
zsh-be73026b07decc3990b2a345c42a8f7b74d8f83d.tar.xz
zsh-be73026b07decc3990b2a345c42a8f7b74d8f83d.zip
45583/0002: internal: Reduce some variables' visibility. No functional change.
-rw-r--r--ChangeLog3
-rw-r--r--Src/parse.c15
2 files changed, 10 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a28744c2..b73089f91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2020-03-22  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 45583/0002: Src/parse.c: internal: Reduce some variables'
+	visibility. No functional change.
+
 	* 45583/0001: Src/exec.c: internal: Remove a redundant
 	assignment.
 
diff --git a/Src/parse.c b/Src/parse.c
index de1b27967..bd974a573 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -253,14 +253,13 @@ struct heredocs *hdocs;
  * to avoid a lot of string parsing and some more string duplication.
  */
 
-/**/
-int eclen, ecused, ecnpats;
-/**/
-Wordcode ecbuf;
-/**/
-Eccstr ecstrs;
-/**/
-int ecsoffs, ecssub, ecnfunc;
+static int eclen, ecused, ecnpats;
+
+static Wordcode ecbuf;
+
+static Eccstr ecstrs;
+
+static int ecsoffs, ecssub, ecnfunc;
 
 #define EC_INIT_SIZE         256
 #define EC_DOUBLE_THRESHOLD  32768