Skip to content

Commit

Permalink
read headers via FileStream (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave authored May 22, 2024
1 parent e040047 commit 8d8926b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simplecpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3463,7 +3463,8 @@ void simplecpp::preprocess(simplecpp::TokenList &output, const simplecpp::TokenL
std::ifstream f;
header2 = openHeader(f, dui, rawtok->location.file(), header, systemheader);
if (f.is_open()) {
TokenList * const tokens = new TokenList(f, files, header2, outputList);
f.close();
TokenList * const tokens = new TokenList(header2, files, outputList);
if (dui.removeComments)
tokens->removeComments();
filedata[header2] = tokens;
Expand Down

0 comments on commit 8d8926b

Please sign in to comment.