--- trunk/src/antlr/InputBuffer.cpp 2005/12/02 15:38:03 770 +++ trunk/src/antlr/InputBuffer.cpp 2014/02/26 14:14:50 1969 @@ -2,12 +2,17 @@ * Project led by Terence Parr at http://www.jGuru.com * Software rights: http://www.antlr.org/license.html * - * $Id: InputBuffer.cpp,v 1.1 2005-12-02 15:38:02 tim Exp $ + * $Id$ */ #include "antlr/config.hpp" #include "antlr/InputBuffer.hpp" +#include +#ifdef IS_MPI +#include "mpi.h" +#endif + #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE namespace antlr { #endif @@ -16,11 +21,12 @@ void InputBuffer::fill(unsigned int amount) void InputBuffer::fill(unsigned int amount) { syncConsume(); + // Fill the buffer sufficiently to hold needed characters while (queue.entries() < amount + markerOffset) - { - // Append the next character - queue.append(getChar()); + { + // Append the next character + queue.append(getChar()); } }