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 770 by tim, Fri Dec 2 15:38:03 2005 UTC vs.
Revision 1969 by gezelter, Wed Feb 26 14:14:50 2014 UTC

# Line 2 | Line 2
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
# 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  

Comparing trunk/src/antlr/InputBuffer.cpp (property svn:keywords):
Revision 770 by tim, Fri Dec 2 15:38:03 2005 UTC vs.
Revision 1969 by gezelter, Wed Feb 26 14:14:50 2014 UTC

# Line 0 | Line 1
1 + Author Id Revision Date

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines