diff options
author | Assaf Gordon <assafgordon@gmail.com> | 2018-11-01 10:06:47 -0600 |
---|---|---|
committer | Assaf Gordon <assafgordon@gmail.com> | 2018-11-01 10:06:47 -0600 |
commit | 76ca1d2c5328ff1f319089d291842a2d6ec19773 (patch) | |
tree | 72f852d37a37a2b65a103951ac3e98652e95d8e6 /sed | |
parent | 4708cf368acca3d7402f7defab48ea3dc39298ec (diff) | |
download | sed-76ca1d2c5328ff1f319089d291842a2d6ec19773.tar.gz |
build: rename stdin local variable
Under windows/msys2, defining 'bool stdin' variable results in
compilation errors:
../sed/execute.c:1252:8: error: expected declaration specifiers or '...'
before numeric constant
bool stdin = (input->fp && fileno (input->fp) == 0);
^~~~~
Reported by Jannick <thirdedition@gmx.net> in
https://lists.gnu.org/archive/html/sed-devel/2018-10/msg00019.html .
* sed/execute.c (debug_print_input): Rename 'stdin' to 'is_stdin'.
Diffstat (limited to 'sed')
-rw-r--r-- | sed/execute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sed/execute.c b/sed/execute.c index 3d6c258..b39bab4 100644 --- a/sed/execute.c +++ b/sed/execute.c @@ -1249,10 +1249,10 @@ debug_print_end_of_cycle (void) static void debug_print_input (const struct input *input) { - bool stdin = (input->fp && fileno (input->fp) == 0); + bool is_stdin = (input->fp && fileno (input->fp) == 0); printf ("INPUT: '%s' line %lu\n", - stdin?"STDIN":input->in_file_name, + is_stdin?"STDIN":input->in_file_name, input->line_number); } |