/[groff]/groff/src/preproc/html/pushback.cpp
ViewVC logotype

Diff of /groff/src/preproc/html/pushback.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by wl, Thu May 26 21:02:01 2005 UTC revision 1.6 by wl, Thu Jun 16 09:47:49 2005 UTC
# Line 1  Line 1 
1  // -*- C++ -*-  // -*- C++ -*-
2  /* Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.  /* Copyright (C) 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
3       Written by Gaius Mulley (gaius@glam.ac.uk).       Written by Gaius Mulley (gaius@glam.ac.uk).
4    
5  This file is part of groff.  This file is part of groff.
# Line 83  pushBackBuffer::pushBackBuffer (char *fi Line 83  pushBackBuffer::pushBackBuffer (char *fi
83    
84  pushBackBuffer::~pushBackBuffer ()  pushBackBuffer::~pushBackBuffer ()
85  {  {
   int old;  
   
86    if (charStack != 0) {    if (charStack != 0) {
87      free(charStack);      free(charStack);
88    }    }
89    close(0);    close(0);
90    /* restore stdin in file descriptor 0 */    /* restore stdin in file descriptor 0 */
91    old = dup(stdIn);    dup(stdIn);
92    close(stdIn);    close(stdIn);
93  }  }
94    
# Line 162  static int isWhite (char ch) Line 160  static int isWhite (char ch)
160    
161  void pushBackBuffer::skipToNewline (void)  void pushBackBuffer::skipToNewline (void)
162  {  {
   char ch;  
   
163    while ((putPB(getPB()) != '\n') && (! eofFound)) {    while ((putPB(getPB()) != '\n') && (! eofFound)) {
164      ch = getPB();      getPB();
165    }    }
166  }  }
167    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26