"docs/git@developer.sourcefind.cn:SIYIXNI/vllm.git" did not exist on "d06980dfa7e8dcc1738656beb46d3735c86faa21"
Commit 0c728253 authored by Jesse Beder's avatar Jesse Beder
Browse files

Renamed all variables named 'null' (for real now, and only that)

parent 16f05e73
...@@ -62,7 +62,7 @@ namespace YAML ...@@ -62,7 +62,7 @@ namespace YAML
Emitter& Write(const _Anchor& anchor); Emitter& Write(const _Anchor& anchor);
Emitter& Write(const _Tag& tag); Emitter& Write(const _Tag& tag);
Emitter& Write(const _Comment& comment); Emitter& Write(const _Comment& comment);
Emitter& Write(const _Null& null); Emitter& Write(const _Null& n);
Emitter& Write(const Binary& binary); Emitter& Write(const Binary& binary);
template <typename T> template <typename T>
......
...@@ -90,7 +90,7 @@ namespace YAML ...@@ -90,7 +90,7 @@ namespace YAML
class EmitterException: public Exception { class EmitterException: public Exception {
public: public:
EmitterException(const std::string& msg_) EmitterException(const std::string& msg_)
: Exception(Mark::null(), msg_) {} : Exception(Mark::null_mark(), msg_) {}
}; };
} }
......
...@@ -13,7 +13,7 @@ namespace YAML ...@@ -13,7 +13,7 @@ namespace YAML
struct YAML_CPP_API Mark { struct YAML_CPP_API Mark {
Mark(): pos(0), line(0), column(0) {} Mark(): pos(0), line(0), column(0) {}
static const Mark null() { return Mark(-1, -1, -1); } static const Mark null_mark() { return Mark(-1, -1, -1); }
int pos; int pos;
int line, column; int line, column;
......
...@@ -383,7 +383,7 @@ namespace YAML ...@@ -383,7 +383,7 @@ namespace YAML
// . Does not parse any more tokens. // . Does not parse any more tokens.
void Scanner::ThrowParserException(const std::string& msg) const void Scanner::ThrowParserException(const std::string& msg) const
{ {
Mark mark = Mark::null(); Mark mark = Mark::null_mark();
if(!m_tokens.empty()) { if(!m_tokens.empty()) {
const Token& token = m_tokens.front(); const Token& token = m_tokens.front();
mark = token.mark; mark = token.mark;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment