| 2 |  | * Project led by Terence Parr at http://www.jGuru.com | 
| 3 |  | * Software rights: http://www.antlr.org/license.html | 
| 4 |  | * | 
| 5 | < | * $Id: InputBuffer.cpp,v 1.1 2005-12-02 15:38:02 tim Exp $ | 
| 5 | > | * $Id$ | 
| 6 |  | */ | 
| 7 |  |  | 
| 8 |  | #include "antlr/config.hpp" | 
| 9 |  | #include "antlr/InputBuffer.hpp" | 
| 10 | + | #include  <iostream> | 
| 11 | + | #ifdef IS_MPI | 
| 12 | + | #include "mpi.h" | 
| 13 | + | #endif | 
| 14 |  |  | 
| 15 | + |  | 
| 16 |  | #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE | 
| 17 |  | namespace antlr { | 
| 18 |  | #endif | 
| 21 |  | void InputBuffer::fill(unsigned int amount) | 
| 22 |  | { | 
| 23 |  | syncConsume(); | 
| 24 | + |  | 
| 25 |  | // Fill the buffer sufficiently to hold needed characters | 
| 26 |  | while (queue.entries() < amount + markerOffset) | 
| 27 | < | { | 
| 28 | < | // Append the next character | 
| 29 | < | queue.append(getChar()); | 
| 27 | > | { | 
| 28 | > | // Append the next character | 
| 29 | > | queue.append(getChar()); | 
| 30 |  | } | 
| 31 |  | } | 
| 32 |  |  |