Skip to content

Commit

Permalink
APREPRO: Fix double echoing of some output
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Oct 13, 2023
1 parent 1ff5373 commit 76e0b77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/seacas/libraries/aprepro_lib/apr_scanner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3655,7 +3655,9 @@ namespace SEAMS {
return;

// Clear any possible end-of-stream if e.g., reading from a istringstream.
yyin->clear();
if (aprepro.ap_file_list.top().name == "interactive_input") {
yyin->clear();
}
// Go back in the stream to where we started keeping history.
yyin->seekg(hist_start);
if (!yyin->good()) {
Expand Down
4 changes: 3 additions & 1 deletion packages/seacas/libraries/aprepro_lib/aprepro.ll
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,9 @@ integer {D}+({E})?
return;

// Clear any possible end-of-stream if e.g., reading from a istringstream.
yyin->clear();
if (aprepro.ap_file_list.top().name == "interactive_input") {
yyin->clear();
}
// Go back in the stream to where we started keeping history.
yyin->seekg(hist_start);
if (!yyin->good()) {
Expand Down

0 comments on commit 76e0b77

Please sign in to comment.