Fixes for Python 2.6

This commit is contained in:
Darryl Pogue
2010-12-18 22:18:32 -08:00
parent 3f8311122d
commit c6962d9f48
3 changed files with 21 additions and 4 deletions

View File

@@ -23,10 +23,15 @@ public:
{ m_stack[++m_ptr] = node; }
void pop()
{ m_stack[m_ptr--] = Node_NULL; }
{ if (m_ptr > -1) m_stack[m_ptr--] = Node_NULL; }
PycRef<ASTNode> top() const
{ return m_stack[m_ptr]; }
{
if (m_ptr > -1)
return m_stack[m_ptr];
else
return Node_NULL;
}
void replace(const FastStack& copy)
{