>From 76ca1d2c5328ff1f319089d291842a2d6ec19773 Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Thu, 1 Nov 2018 10:06:47 -0600 Subject: [PATCH] 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 in https://lists.gnu.org/archive/html/sed-devel/2018-10/msg00019.html . * sed/execute.c (debug_print_input): Rename 'stdin' to 'is_stdin'. --- sed/execute.c | 4 ++-- 1 file 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); } -- 2.11.0