From 18a5f1082e3cc89a5611f6d3cdd23c3327cb15cb Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Sun, 2 Oct 2011 10:40:05 -0700 Subject: [PATCH] Clean up use of inline loop/conditional bodies --- ASTree.cpp | 3 ++- numeric.cpp | 6 ++++-- string.cpp | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ASTree.cpp b/ASTree.cpp index 5e53fb0..694c150 100644 --- a/ASTree.cpp +++ b/ASTree.cpp @@ -32,7 +32,8 @@ PycRef BuildFromCode(PycRef code, PycModule* mod) while (!source.atEof()) { #ifdef BLOCK_DEBUG fprintf(stderr, "%02d", pos); - for (unsigned int i = 0; i < blocks.size(); i++) fprintf(stderr, " "); + for (unsigned int i = 0; i < blocks.size(); i++) + fprintf(stderr, " "); fprintf(stderr, "%s\n", curblock->type_str()); #endif diff --git a/numeric.cpp b/numeric.cpp index 4a9a07b..ae0bab5 100644 --- a/numeric.cpp +++ b/numeric.cpp @@ -94,7 +94,8 @@ std::string PycLong::repr() const void PycFloat::load(PycData* stream, PycModule*) { int len = stream->getByte(); - if (m_value) delete[] m_value; + if (m_value) + delete[] m_value; if (len > 0) { m_value = new char[len+1]; stream->getBuffer(len, m_value); @@ -122,7 +123,8 @@ void PycComplex::load(PycData* stream, PycModule* mod) PycFloat::load(stream, mod); int len = stream->getByte(); - if (m_imag) delete[] m_imag; + if (m_imag) + delete[] m_imag; if (len > 0) { m_imag = new char[len+1]; stream->getBuffer(len, m_imag); diff --git a/string.cpp b/string.cpp index 6fcdbb7..c4a342c 100644 --- a/string.cpp +++ b/string.cpp @@ -6,7 +6,8 @@ /* PycString */ void PycString::load(PycData* stream, PycModule* mod) { - if (m_value) delete[] m_value; + if (m_value) + delete[] m_value; if (type() == TYPE_STRINGREF) { PycRef str = mod->getIntern(stream->get32());