ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/antlr/InputBuffer.cpp
(Generate patch)

Comparing trunk/src/antlr/InputBuffer.cpp (file contents):
Revision 1968 by gezelter, Wed Jan 15 22:26:18 2014 UTC vs.
Revision 1969 by gezelter, Wed Feb 26 14:14:50 2014 UTC

# Line 7 | Line 7
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
# Line 16 | Line 21 | void InputBuffer::fill(unsigned int amount)
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines