add support for '-in none' for multi-partition runs from the library interface

This commit is contained in:
Axel Kohlmeyer
2020-11-19 18:58:21 -05:00
parent 7450d9547a
commit 371b1a80e3
4 changed files with 27 additions and 17 deletions

View File

@ -189,8 +189,15 @@ void Input::file()
// if line ends in continuation char '&', concatenate next line
if (me == 0) {
m = 0;
while (1) {
if (infile == nullptr) {
n = 0;
break;
}
if (maxline-m < 2) reallocate(line,maxline,0);
// end of file reached, so break