Skip to content

Commit

Permalink
replace 'isspace' with 'std::isspace' (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar authored Sep 28, 2024
1 parent 0442161 commit 26b6431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simplecpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ void simplecpp::TokenList::readfile(Stream &stream, const std::string &filename,
}

if (prefix.empty())
push_back(new Token(s, location, isspace(stream.peekChar()))); // push string without newlines
push_back(new Token(s, location, std::isspace(stream.peekChar()))); // push string without newlines
else
back()->setstr(prefix + s);

Expand Down Expand Up @@ -916,7 +916,7 @@ void simplecpp::TokenList::readfile(Stream &stream, const std::string &filename,
}
}

push_back(new Token(currentToken, location, isspace(stream.peekChar())));
push_back(new Token(currentToken, location, std::isspace(stream.peekChar())));

if (multiline)
location.col += currentToken.size();
Expand Down

0 comments on commit 26b6431

Please sign in to comment.