diff options
author | 2020-08-03 16:10:32 +0200 | |
---|---|---|
committer | 2020-08-04 10:18:38 +0200 | |
commit | fde721b7c79833f453f978c937ae276f88a8ab80 (patch) | |
tree | bd1df0d7a358fbdcc58cb5de1984c4519ed39a2e /src/configparser.cpp | |
parent | 259afa5353de2d799829ff85dde7194a6e119ddc (diff) | |
download | newsboat-fde721b7c79833f453f978c937ae276f88a8ab80.tar.gz newsboat-fde721b7c79833f453f978c937ae276f88a8ab80.tar.zst newsboat-fde721b7c79833f453f978c937ae276f88a8ab80.zip |
Rename ConfigParser::parse() -> parse_file()
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r-- | src/configparser.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp index 3c0a9a86..be29d261 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -39,7 +39,7 @@ void ConfigParser::handle_action(const std::string& action, std::string tilde_expanded = utils::resolve_tilde(params[0]); std::string current_fpath = included_files.back(); - if (!this->parse(utils::resolve_relative(current_fpath, tilde_expanded))) + if (!this->parse_file(utils::resolve_relative(current_fpath, tilde_expanded))) throw ConfigHandlerException( ActionHandlerStatus::FILENOTFOUND); } else @@ -47,7 +47,7 @@ void ConfigParser::handle_action(const std::string& action, ActionHandlerStatus::INVALID_COMMAND); } -bool ConfigParser::parse(const std::string& tmp_filename) +bool ConfigParser::parse_file(const std::string& tmp_filename) { /* * this function parses a config file. @@ -73,7 +73,7 @@ bool ConfigParser::parse(const std::string& tmp_filename) if (std::find(included_files.begin(), included_files.end(), filename) != included_files.end()) { LOG(Level::WARN, - "ConfigParser::parse: file %s has already been " + "ConfigParser::parse_file: file %s has already been " "included", filename); return true; @@ -85,7 +85,7 @@ bool ConfigParser::parse(const std::string& tmp_filename) std::string line; if (!f.is_open()) { LOG(Level::WARN, - "ConfigParser::parse: file %s couldn't be opened", + "ConfigParser::parse_file: file %s couldn't be opened", filename); return false; } @@ -93,7 +93,7 @@ bool ConfigParser::parse(const std::string& tmp_filename) while (f.is_open() && !f.eof()) { getline(f, line); ++linecounter; - LOG(Level::DEBUG, "ConfigParser::parse: tokenizing %s", line); + LOG(Level::DEBUG, "ConfigParser::parse_file: tokenizing %s", line); auto stripped = utils::strip_comments(line); auto evaluated = evaluate_backticks(std::move(stripped)); |