diff options
author | emaste <emaste@FreeBSD.org> | 2014-11-25 21:00:58 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-11-25 21:00:58 +0000 |
commit | 01ee1789d6aa7294e5966a97f8d29387f6f81699 (patch) | |
tree | c94307da318be46e5aeea1a325c1e91749506e4f /source/Interpreter/CommandHistory.cpp | |
parent | 788502c6f6261e2d84ef85d1052b41a6c5be31b3 (diff) | |
download | FreeBSD-src-01ee1789d6aa7294e5966a97f8d29387f6f81699.zip FreeBSD-src-01ee1789d6aa7294e5966a97f8d29387f6f81699.tar.gz |
Import LLDB as of upstream SVN r216948 (git 50f7fe44)
This corresponds with the branchpoint for the 3.5 release.
A number of files not required for the FreeBSD build have been removed.
Sponsored by: DARPA, AFRL
Diffstat (limited to 'source/Interpreter/CommandHistory.cpp')
-rw-r--r-- | source/Interpreter/CommandHistory.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/Interpreter/CommandHistory.cpp b/source/Interpreter/CommandHistory.cpp index 33971e3..26996a6 100644 --- a/source/Interpreter/CommandHistory.cpp +++ b/source/Interpreter/CommandHistory.cpp @@ -41,17 +41,17 @@ CommandHistory::FindString (const char* input_str) const { Mutex::Locker locker(m_mutex); if (!input_str) - return NULL; + return nullptr; if (input_str[0] != g_repeat_char) - return NULL; + return nullptr; if (input_str[1] == '-') { bool success; size_t idx = Args::StringToUInt32 (input_str+2, 0, 0, &success); if (!success) - return NULL; + return nullptr; if (idx > m_history.size()) - return NULL; + return nullptr; idx = m_history.size() - idx; return m_history[idx].c_str(); @@ -59,7 +59,7 @@ CommandHistory::FindString (const char* input_str) const else if (input_str[1] == g_repeat_char) { if (m_history.empty()) - return NULL; + return nullptr; else return m_history.back().c_str(); } @@ -68,9 +68,9 @@ CommandHistory::FindString (const char* input_str) const bool success; uint32_t idx = Args::StringToUInt32 (input_str+1, 0, 0, &success); if (!success) - return NULL; + return nullptr; if (idx >= m_history.size()) - return NULL; + return nullptr; return m_history[idx].c_str(); } } @@ -81,7 +81,7 @@ CommandHistory::GetStringAtIndex (size_t idx) const Mutex::Locker locker(m_mutex); if (idx < m_history.size()) return m_history[idx].c_str(); - return NULL; + return nullptr; } const char* @@ -95,7 +95,7 @@ CommandHistory::GetRecentmostString () const { Mutex::Locker locker(m_mutex); if (m_history.empty()) - return NULL; + return nullptr; return m_history.back().c_str(); } @@ -137,7 +137,7 @@ CommandHistory::Dump (Stream& stream, if (!hist_item.empty()) { stream.Indent(); - stream.Printf ("%4zu: %s\n", counter, hist_item.c_str()); + stream.Printf("%4" PRIu64 ": %s\n", (uint64_t)counter, hist_item.c_str()); } } } |