From be73026b07decc3990b2a345c42a8f7b74d8f83d Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 18 Mar 2020 17:45:23 +0000 Subject: 45583/0002: internal: Reduce some variables' visibility. No functional change. --- ChangeLog | 3 +++ Src/parse.c | 15 +++++++-------- 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 + * 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 -- cgit 1.4.1