Portability: Variable initialization not at beginning of block
commit8174f5dd37ea22c5c7ad357041e1bc6cd6c88e36
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Tue, 30 May 2023 08:21:08 +0000 (30 10:21 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Tue, 30 May 2023 08:21:08 +0000 (30 10:21 +0200)
tree3eea4dc3653304001194a96d372a66f25508bd8b
parent6462038a06640fd734b8204b8af95eb3b86fcb4c
Portability: Variable initialization not at beginning of block

Recent changes in segment.c result in compilation errors on older
compilers like on debian buster or MacOS.

../pspp/src/language/lexer/segment.c:1255:7:
error: a label can only be part of a statement
and a declaration is not a statement
       int eol = at_end_of_line (input, n, eof, 1);

I changed the code such that it compiles on MacOS again to
a more traditional way to avoid the compile error.
src/language/lexer/segment.c